diff options
| author | FotoVerite <[email protected]> | 2014-05-17 15:24:24 -0400 |
|---|---|---|
| committer | FotoVerite <[email protected]> | 2014-05-17 15:24:24 -0400 |
| commit | daa95b3a4f3eb5131970271be3820ddb45d30022 (patch) | |
| tree | 7d4a4840d008518fdbcb77af49ac70ede9b875c9 /test | |
| parent | 67edd4b29e2c4336da96da777e1c65deba158ce7 (diff) | |
| download | faker-daa95b3a4f3eb5131970271be3820ddb45d30022.tar.xz faker-daa95b3a4f3eb5131970271be3820ddb45d30022.zip | |
Adds female and male name methods. #NOTE they will return a random name and working as intended.
Diffstat (limited to 'test')
| -rw-r--r-- | test/name.unit.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/name.unit.js b/test/name.unit.js index 8563f0db..80d8256d 100644 --- a/test/name.unit.js +++ b/test/name.unit.js @@ -17,6 +17,28 @@ describe("name.js", function () { }); }); + describe("firstNameFemale()", function () { + it("returns a random name", function () { + sinon.stub(Faker.random, 'first_name').returns('foo'); + var first_name = Faker.Name.firstNameFemale(); + + assert.equal(first_name, 'foo'); + + Faker.random.first_name.restore(); + }); + }); + + describe("firstNameMale()", function () { + it("returns a random name", function () { + sinon.stub(Faker.random, 'first_name').returns('foo'); + var first_name = Faker.Name.firstNameMale(); + + assert.equal(first_name, 'foo'); + + Faker.random.first_name.restore(); + }); + }); + describe("lastName()", function () { it("returns a random name", function () { |
