diff options
| author | Ari Gesher <[email protected]> | 2014-11-20 00:37:06 -0800 |
|---|---|---|
| committer | Ari Gesher <[email protected]> | 2014-11-20 00:37:06 -0800 |
| commit | ec87c45fa09ec653a4afc7edad6791956a2f3f64 (patch) | |
| tree | a8ad2e57b3536b17156c0ce88acd82ed2dac88b5 /test | |
| parent | 8bbe2ef91a02bcc8ffbf835a4616aacf55837e49 (diff) | |
| download | faker-ec87c45fa09ec653a4afc7edad6791956a2f3f64.tar.xz faker-ec87c45fa09ec653a4afc7edad6791956a2f3f64.zip | |
Fixed male/female split check on findName()
(It was failing on locales that use a fallback)
Diffstat (limited to 'test')
| -rw-r--r-- | test/name.unit.js | 6 |
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(); + }); }); }); |
