blob: 932369f426927e643fb22dc0a635d7a55a998ff7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
if (typeof module !== 'undefined') {
var assert = require('assert');
var sinon = require('sinon');
var faker = require('../index');
}
// TODO: make some tests for getting / setting locales
// 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);
}
});
});
});
|