aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormbehzad <[email protected]>2017-10-21 20:50:35 +0200
committermbehzad <[email protected]>2017-10-21 20:50:35 +0200
commit70eb7276fdb612371b18ed68c9748cd90bf28954 (patch)
treec15676e469c93e052610ad4b58b60e89fe198ff1 /test
parent50210656688c3841b7c41126b0c1729592fd7da8 (diff)
downloadfaker-70eb7276fdb612371b18ed68c9748cd90bf28954.tar.xz
faker-70eb7276fdb612371b18ed68c9748cd90bf28954.zip
re-order of the company.bs adjective and buzz (#496)
- re-orderes adjective and buzz in the company.bs template literal for a correct gramatics as sugessted in the issue #496, - re-orders the statements in the unit test to reflect the same order as in the function for an easier read.
Diffstat (limited to 'test')
-rw-r--r--test/company.unit.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/company.unit.js b/test/company.unit.js
index f863d83d..06292b35 100644
--- a/test/company.unit.js
+++ b/test/company.unit.js
@@ -79,22 +79,22 @@ describe("company.js", function () {
});
describe("bs()", function () {
- it("returns phrase comprising of a BS adjective, buzz, and noun", function () {
+ it("returns phrase comprising of a BS buzz, adjective, and noun", function () {
sinon.spy(faker.random, 'arrayElement');
- sinon.spy(faker.company, 'bsAdjective');
sinon.spy(faker.company, 'bsBuzz');
+ sinon.spy(faker.company, 'bsAdjective');
sinon.spy(faker.company, 'bsNoun');
var bs = faker.company.bs();
assert.ok(typeof bs === 'string');
assert.ok(faker.random.arrayElement.calledThrice);
- assert.ok(faker.company.bsAdjective.calledOnce);
assert.ok(faker.company.bsBuzz.calledOnce);
+ assert.ok(faker.company.bsAdjective.calledOnce);
assert.ok(faker.company.bsNoun.calledOnce);
- faker.random.arrayElement.restore();
- faker.company.bsAdjective.restore();
+ faker.random.arrayElement.restore();
faker.company.bsBuzz.restore();
+ faker.company.bsAdjective.restore();
faker.company.bsNoun.restore();
});
});