Skip to main content
Module

x/deno_faker/test/locales_test.ts

Deno port of https://github.com/Marak/faker.js
Latest
File
import { assertEquals } from "./support/test_deps.ts";import { faker } from "../mod.ts";const { test } = Deno;
// TODO: make some tests for getting / setting locales
// Remark: actual use of locales functionality is currently tested in all.functional.js test
test({ name: "setLocale() changes faker.locale", fn() { for (const locale in faker.locales) { faker.setLocale(locale); assertEquals(faker.locale, locale); } },});