Skip to content

Commit

Permalink
[fix] [minor] Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Jul 5, 2015
1 parent bed4ad4 commit edccd6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var _name = {
job = faker.random.array_element(faker.definitions.name.title.job);

return descriptor + " " + level + " " + job;
}
},

jobDescriptor: function () {
return faker.random.array_element(faker.definitions.name.title.descriptor);
Expand Down
13 changes: 8 additions & 5 deletions test/name.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ describe("name.js", function () {
});

describe("title()", function () {
it("returns a random title", function () {
sinon.stub(faker.name, 'title').returns('Lead Solutions Supervisor');
it("returns a random title", function () {
sinon.stub(faker.name, 'title').returns('Lead Solutions Supervisor');

var title = faker.name.title();
var title = faker.name.title();

assert.equal(title, 'Lead Solutions Supervisor');
assert.equal(title, 'Lead Solutions Supervisor');

faker.name.title.restore();
});
});

faker.name.title.restore();
describe("jobTitle()", function () {
it("returns a job title consisting of a descriptor, area, and type", function () {
sinon.spy(faker.random, 'array_element');
Expand Down

0 comments on commit edccd6c

Please sign in to comment.