aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFotoVerite <[email protected]>2014-05-17 15:24:24 -0400
committerFotoVerite <[email protected]>2014-05-17 15:24:24 -0400
commitdaa95b3a4f3eb5131970271be3820ddb45d30022 (patch)
tree7d4a4840d008518fdbcb77af49ac70ede9b875c9 /test
parent67edd4b29e2c4336da96da777e1c65deba158ce7 (diff)
downloadfaker-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.js22
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 () {