aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarak <[email protected]>2017-10-21 15:18:26 -0400
committerGitHub <[email protected]>2017-10-21 15:18:26 -0400
commitb78fdff29d5c6c3318948c2c44c7903eed55ce4c (patch)
treec15676e469c93e052610ad4b58b60e89fe198ff1
parent50210656688c3841b7c41126b0c1729592fd7da8 (diff)
parent70eb7276fdb612371b18ed68c9748cd90bf28954 (diff)
downloadfaker-b78fdff29d5c6c3318948c2c44c7903eed55ce4c.tar.xz
faker-b78fdff29d5c6c3318948c2c44c7903eed55ce4c.zip
Merge pull request #563 from mbehzad/fix-for-issue-496
re-order of the company.bs adjective and buzz (#496)
-rw-r--r--lib/company.js2
-rw-r--r--test/company.unit.js10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/company.js b/lib/company.js
index ebb436dd..d16689e2 100644
--- a/lib/company.js
+++ b/lib/company.js
@@ -62,7 +62,7 @@ var Company = function (faker) {
* @method faker.company.bs
*/
this.bs = function () {
- return f('{{company.bsAdjective}} {{company.bsBuzz}} {{company.bsNoun}}');
+ return f('{{company.bsBuzz}} {{company.bsAdjective}} {{company.bsNoun}}');
}
/**
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();
});
});