aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2014-11-24 01:52:53 +0100
committerMarak <[email protected]>2014-11-24 01:52:53 +0100
commit11fefd8006a8a2d63bcb02ad0f2bf213716e34a9 (patch)
treea8ad2e57b3536b17156c0ce88acd82ed2dac88b5 /test
parent8bbe2ef91a02bcc8ffbf835a4616aacf55837e49 (diff)
parentec87c45fa09ec653a4afc7edad6791956a2f3f64 (diff)
downloadfaker-11fefd8006a8a2d63bcb02ad0f2bf213716e34a9.tar.xz
faker-11fefd8006a8a2d63bcb02ad0f2bf213716e34a9.zip
Merge pull request #145 from arigesher/master
[fix] Fixed male/female split check on findName()
Diffstat (limited to 'test')
-rw-r--r--test/name.unit.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/name.unit.js b/test/name.unit.js
index 32bdef48..b34cbd1b 100644
--- a/test/name.unit.js
+++ b/test/name.unit.js
@@ -60,5 +60,11 @@ describe("name.js", function () {
faker.random.number.restore();
});
+
+ it("needs to work with specific locales and respect the fallbacks", function () {
+ faker.locale = 'en_US';
+ // this will throw if this is broken
+ var name = faker.name.findName();
+ });
});
});