diff options
| author | Saurabh kumar <[email protected]> | 2024-06-13 15:44:46 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-13 10:14:46 +0000 |
| commit | a5ffca1c7863531d459f67cbab7bd9ba34d16904 (patch) | |
| tree | 14c8100e1e51042319720634b5badb8bd655df85 /test | |
| parent | 2a2a13200acd858a2ee45e43072f55888511fb8d (diff) | |
| download | faker-a5ffca1c7863531d459f67cbab7bd9ba34d16904.tar.xz faker-a5ffca1c7863531d459f67cbab7bd9ba34d16904.zip | |
refactor(locale)!: use singular locale definition keys (#2932)
Diffstat (limited to 'test')
| -rw-r--r-- | test/modules/lorem.spec.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/modules/lorem.spec.ts b/test/modules/lorem.spec.ts index 39a9a144..4f5c5aba 100644 --- a/test/modules/lorem.spec.ts +++ b/test/modules/lorem.spec.ts @@ -43,7 +43,7 @@ describe('lorem', () => { expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); - expect(faker.definitions.lorem.words).toContain(actual); + expect(faker.definitions.lorem.word).toContain(actual); }); // INFO @Shinigami92 2022-02-11: Seems there are only words with a max length of 14 characters @@ -54,7 +54,7 @@ describe('lorem', () => { expect(actual).toBeTruthy(); expect(actual).toBeTypeOf('string'); - expect(faker.definitions.lorem.words).toContain(actual); + expect(faker.definitions.lorem.word).toContain(actual); expect(actual).toHaveLength(length); } ); @@ -72,7 +72,7 @@ describe('lorem', () => { expect(words).toHaveLength(3); for (const word of words) { - expect(faker.definitions.lorem.words).toContain(word); + expect(faker.definitions.lorem.word).toContain(word); } }); @@ -89,7 +89,7 @@ describe('lorem', () => { expect(words).toHaveLength(num); for (const word of words) { - expect(faker.definitions.lorem.words).toContain(word); + expect(faker.definitions.lorem.word).toContain(word); } } ); @@ -106,7 +106,7 @@ describe('lorem', () => { expect(words.length).toBeLessThanOrEqual(20); for (const word of words) { - expect(faker.definitions.lorem.words).toContain(word); + expect(faker.definitions.lorem.word).toContain(word); } }); }); |
