diff options
| author | Shinigami <[email protected]> | 2023-07-18 13:25:38 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-18 13:25:38 +0200 |
| commit | 3df98a0cb330f0a67f4b1c37c168709aafc941d6 (patch) | |
| tree | ba2bc4687bce2b0b1254b7804769d04f71649919 /test | |
| parent | 5f947cbd4773f768a90243e54fd707c9769e8530 (diff) | |
| download | faker-3df98a0cb330f0a67f4b1c37c168709aafc941d6.tar.xz faker-3df98a0cb330f0a67f4b1c37c168709aafc941d6.zip | |
chore: remove legacy locale folder (#2263)
Diffstat (limited to 'test')
| -rw-r--r-- | test/locale-imports.spec.ts | 23 |
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 - ); - }); - }); }); |
