Skip to content

Commit

Permalink
lin test specs files
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed May 31, 2016
1 parent 9f81ed6 commit 465bf79
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module.exports = {
"browser": true,
"commonjs": true,
"es6": true,
"jquery": true
"jquery": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"prebuild": "npm run test",
"build": "webpack --config config/webpack.build.config.js",
"lint": "eslint --ext=.js lib",
"lint": "eslint --ext=.js lib test/specs",
"coverall": "cat ./test/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "npm run test && npm run coverall",
"changelog": "conventional-changelog -i CHANGELOG.md -s",
Expand Down
2 changes: 1 addition & 1 deletion test/specs/locales/de-DE/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ describe("Locale de-DE", () => {

});

})
});
4 changes: 2 additions & 2 deletions test/specs/locales/default/address.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Default address", () => {
});

it("check address.countryAndCode", () => {
let res = fakerator.address.countryAndCode()
let res = fakerator.address.countryAndCode();
expect(res).to.be.an("Object");
expect(res).to.have.property("code").equal("RO");
expect(res).to.have.property("name").equal("Romania");
Expand Down Expand Up @@ -112,4 +112,4 @@ describe("Default address", () => {
expect(fakerator.address.altitude({ max: 500 })).to.be.below(500);
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/company.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ describe("Default company", () => {
expect(fakerator.company.suffix()).to.be.equal("Ltd.");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/date.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ describe("Default date", () => {
expect(fakerator.date.weekdayMin()).to.be.equal("Su");
});

})
});
3 changes: 2 additions & 1 deletion test/specs/locales/default/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ describe("Locale default", () => {
expect(fakerator.locale.lorem).to.be.an("Object");
expect(fakerator.locale.date).to.be.an("Object");
});
})

});
2 changes: 1 addition & 1 deletion test/specs/locales/default/internet.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ describe("Default internet", () => {
expect(fakerator.internet.ipv6()).to.be.equal("8807:58c0:6a36:4afe:b1ce:2347:2438:78be");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/lorem.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ describe("Default lorem", () => {
expect(fakerator.lorem.paragraph()).to.be.an("String");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/misc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ describe("Default misc", () => {
.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/);
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/names.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ describe("Default names", () => {
expect(fakerator.names.nameF()).to.be.equal("Juanita Daniel");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/default/phone.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ describe("Default phone", () => {
expect(fakerator.phone.number()).to.be.equal("(640) 552-0763");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/es-ES/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ describe("Locale es-ES", () => {

});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/fr-FR/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ describe("Locale fr-FR", () => {

});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/hu-HU/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ describe("Locale hu-HU", () => {

});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/it-IT/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ describe("Locale it-IT", () => {

});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/pl-PL/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ describe("Locale pl-PL", () => {

});

})
});
2 changes: 1 addition & 1 deletion test/specs/locales/ru-RU/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@ describe("Locale ru-RU", () => {

});

})
});
3 changes: 2 additions & 1 deletion test/specs/others.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ describe("Fakerator utils", () => {
.to.be.deep.equal([ 6, 8, 3, 1, 2, 7, 4, 5, 9 ]);

});
})

});
2 changes: 1 addition & 1 deletion test/specs/populate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ describe("Fakerator.populate", () => {
expect(fakerator.populate("#{abcd.xyz}")).to.be.equal("4{abcd.xyz}");
});

})
});
2 changes: 1 addition & 1 deletion test/specs/random.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ describe("Fakerator.random", () => {
expect(fakerator.random.string({ min: 5, max: 10 })).to.be.length(5);
});

})
});
2 changes: 1 addition & 1 deletion test/specs/seed.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ describe("Fakerator.seed", () => {
expect(fakerator.random.number(100)).to.be.equal(92);
});

})
});

0 comments on commit 465bf79

Please sign in to comment.