diff --git a/lib/company.js b/lib/company.js index ebb436ddc..d16689e25 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 f863d83d9..06292b358 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(); }); });