diff options
Diffstat (limited to 'test/modules')
| -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); } }); }); |
