diff options
| author | Shinigami <[email protected]> | 2024-03-12 15:46:55 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-12 14:46:55 +0000 |
| commit | 19bcf886e41b13a6b77b92bac4775b18e8aa9418 (patch) | |
| tree | 5b72671c7b8ca7c126d4a1f4f2c73e31a85d8db5 /test/modules | |
| parent | e130549e82a3d59af46f2d595ed47fa9a39724a3 (diff) | |
| download | faker-19bcf886e41b13a6b77b92bac4775b18e8aa9418.tar.xz faker-19bcf886e41b13a6b77b92bac4775b18e8aa9418.zip | |
refactor(company)!: remove v8 deprecated company methods (#2726)
Diffstat (limited to 'test/modules')
| -rw-r--r-- | test/modules/__snapshots__/company.spec.ts.snap | 33 | ||||
| -rw-r--r-- | test/modules/company.spec.ts | 23 |
2 files changed, 0 insertions, 56 deletions
diff --git a/test/modules/__snapshots__/company.spec.ts.snap b/test/modules/__snapshots__/company.spec.ts.snap index a199424c..26f482c3 100644 --- a/test/modules/__snapshots__/company.spec.ts.snap +++ b/test/modules/__snapshots__/company.spec.ts.snap @@ -16,19 +16,8 @@ exports[`company > 42 > catchPhraseDescriptor 1`] = `"explicit"`; exports[`company > 42 > catchPhraseNoun 1`] = `"framework"`; -exports[`company > 42 > companySuffix 1`] = `"and Sons"`; - exports[`company > 42 > name 1`] = `"Wiegand - Reynolds"`; -exports[`company > 42 > suffixes 1`] = ` -[ - "Inc", - "and Sons", - "LLC", - "Group", -] -`; - exports[`company > 1211 > buzzAdjective 1`] = `"plug-and-play"`; exports[`company > 1211 > buzzNoun 1`] = `"methodologies"`; @@ -45,19 +34,8 @@ exports[`company > 1211 > catchPhraseDescriptor 1`] = `"upward-trending"`; exports[`company > 1211 > catchPhraseNoun 1`] = `"system engine"`; -exports[`company > 1211 > companySuffix 1`] = `"Group"`; - exports[`company > 1211 > name 1`] = `"Trantow, Fahey and Zieme"`; -exports[`company > 1211 > suffixes 1`] = ` -[ - "Inc", - "and Sons", - "LLC", - "Group", -] -`; - exports[`company > 1337 > buzzAdjective 1`] = `"global"`; exports[`company > 1337 > buzzNoun 1`] = `"ROI"`; @@ -74,15 +52,4 @@ exports[`company > 1337 > catchPhraseDescriptor 1`] = `"demand-driven"`; exports[`company > 1337 > catchPhraseNoun 1`] = `"data-warehouse"`; -exports[`company > 1337 > companySuffix 1`] = `"and Sons"`; - exports[`company > 1337 > name 1`] = `"Cronin and Sons"`; - -exports[`company > 1337 > suffixes 1`] = ` -[ - "Inc", - "and Sons", - "LLC", - "Group", -] -`; diff --git a/test/modules/company.spec.ts b/test/modules/company.spec.ts index b4a45bd6..7e1d08d1 100644 --- a/test/modules/company.spec.ts +++ b/test/modules/company.spec.ts @@ -8,9 +8,7 @@ const NON_SEEDED_BASED_RUN = 5; describe('company', () => { seededTests(faker, 'company', (t) => { t.itEach( - 'suffixes', 'name', - 'companySuffix', 'catchPhrase', 'buzzPhrase', 'catchPhraseAdjective', @@ -20,22 +18,11 @@ describe('company', () => { 'buzzVerb', 'buzzNoun' ); - - t.skip('bs').skip('bsAdjective').skip('bsBuzz').skip('bsNoun'); }); describe.each(times(NON_SEEDED_BASED_RUN).map(() => faker.seed()))( 'random seeded tests for seed %i', () => { - describe('suffixes()', () => { - it('should return all suffixes', () => { - const actual = faker.company.suffixes(); - - expect(actual).toBeTruthy(); - expect(faker.definitions.company.suffix).toEqual(actual); - }); - }); - describe('name()', () => { it('should return a random company name', () => { const actual = faker.company.name(); @@ -45,16 +32,6 @@ describe('company', () => { }); }); - describe('companySuffix()', () => { - it('should return random value from company.suffixes array', () => { - const actual = faker.company.companySuffix(); - - expect(actual).toBeTruthy(); - expect(actual).toBeTypeOf('string'); - expect(faker.definitions.company.suffix).toContain(actual); - }); - }); - describe('catchPhrase()', () => { it('should return phrase comprising of a catch phrase adjective, descriptor, and noun', () => { const actual = faker.company.catchPhrase(); |
