aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/locales.unit.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/locales.unit.js b/test/locales.unit.js
index 0b2d4175..932369f4 100644
--- a/test/locales.unit.js
+++ b/test/locales.unit.js
@@ -6,4 +6,15 @@ if (typeof module !== 'undefined') {
// TODO: make some tests for getting / setting locales
-// Remark: actual use of locales functionality is currently tested in all.functional.js test \ No newline at end of file
+// Remark: actual use of locales functionality is currently tested in all.functional.js test
+
+describe("locale", function () {
+ describe("setLocale()", function () {
+ it("setLocale() changes faker.locale", function () {
+ for(var locale in faker.locales) {
+ faker.setLocale(locale)
+ assert.equal(faker.locale, locale);
+ }
+ });
+ });
+});