aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShinigami <[email protected]>2023-07-18 13:25:38 +0200
committerGitHub <[email protected]>2023-07-18 13:25:38 +0200
commit3df98a0cb330f0a67f4b1c37c168709aafc941d6 (patch)
treeba2bc4687bce2b0b1254b7804769d04f71649919 /test
parent5f947cbd4773f768a90243e54fd707c9769e8530 (diff)
downloadfaker-3df98a0cb330f0a67f4b1c37c168709aafc941d6.tar.xz
faker-3df98a0cb330f0a67f4b1c37c168709aafc941d6.zip
chore: remove legacy locale folder (#2263)
Diffstat (limited to 'test')
-rw-r--r--test/locale-imports.spec.ts23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/locale-imports.spec.ts b/test/locale-imports.spec.ts
index 3cbe38aa..6882d537 100644
--- a/test/locale-imports.spec.ts
+++ b/test/locale-imports.spec.ts
@@ -62,27 +62,4 @@ describe.each(Object.keys(allLocales))('locale imports', (locale) => {
}
}
});
-
- describe('Internal tests to cover `src/locale/*.ts`', () => {
- it(`should be possible to directly require('../locale/${locale}')`, () => {
- // eslint-disable-next-line @typescript-eslint/no-var-requires
- const { faker } = require(`../locale/${locale}`);
-
- expect(faker).toBeDefined();
- expect(faker.string.alpha()).toBeTypeOf('string');
- expect(faker.definitions.metadata.title).toBe(
- allLocales[locale].metadata.title
- );
- });
-
- it(`should be possible to directly import('../src/locale/${locale}')`, async () => {
- const { faker } = await import(`../src/locale/${locale}`);
-
- expect(faker).toBeDefined();
- expect(faker.string.alpha()).toBeTypeOf('string');
- expect(faker.definitions.metadata.title).toBe(
- allLocales[locale].metadata.title
- );
- });
- });
});