From ec87c45fa09ec653a4afc7edad6791956a2f3f64 Mon Sep 17 00:00:00 2001 From: Ari Gesher Date: Thu, 20 Nov 2014 00:37:06 -0800 Subject: Fixed male/female split check on findName() (It was failing on locales that use a fallback) --- test/name.unit.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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(); + }); }); }); -- cgit v1.2.3