From a5ffca1c7863531d459f67cbab7bd9ba34d16904 Mon Sep 17 00:00:00 2001 From: Saurabh kumar <111599314+SaurabhXRT@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:44:46 +0530 Subject: refactor(locale)!: use singular locale definition keys (#2932) --- test/modules/lorem.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/modules') 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); } }); }); -- cgit v1.2.3