diff options
| author | Matt Mayer <[email protected]> | 2024-10-17 02:00:24 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-16 19:00:24 +0000 |
| commit | ba4ef9a5a671ffc6ed10db7fed896dccda90dca1 (patch) | |
| tree | 2ce0264f1bac92cccf7130f27808ac1e12f8e9a9 /test/modules | |
| parent | 6a9ca8abec3d8956b45a8607a5371b61de85378a (diff) | |
| download | faker-ba4ef9a5a671ffc6ed10db7fed896dccda90dca1.tar.xz faker-ba4ef9a5a671ffc6ed10db7fed896dccda90dca1.zip | |
feat(commerce): more varied product descriptions (#3174)
Diffstat (limited to 'test/modules')
| -rw-r--r-- | test/modules/__snapshots__/commerce.spec.ts.snap | 6 | ||||
| -rw-r--r-- | test/modules/commerce.spec.ts | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/test/modules/__snapshots__/commerce.spec.ts.snap b/test/modules/__snapshots__/commerce.spec.ts.snap index efad4c8f..11d55038 100644 --- a/test/modules/__snapshots__/commerce.spec.ts.snap +++ b/test/modules/__snapshots__/commerce.spec.ts.snap @@ -30,7 +30,7 @@ exports[`commerce > 42 > product 1`] = `"Computer"`; exports[`commerce > 42 > productAdjective 1`] = `"Handcrafted"`; -exports[`commerce > 42 > productDescription 1`] = `"New ABC 13 9370, 13.3, 5th Gen CoreA5-8250U, 8GB RAM, 256GB SSD, power UHD Graphics, OS 10 Home, OS Office A & J 2016"`; +exports[`commerce > 42 > productDescription 1`] = `"New salmon Pants with ergonomic design for crushing comfort"`; exports[`commerce > 42 > productMaterial 1`] = `"Frozen"`; @@ -66,7 +66,7 @@ exports[`commerce > 1211 > product 1`] = `"Towels"`; exports[`commerce > 1211 > productAdjective 1`] = `"Tasty"`; -exports[`commerce > 1211 > productDescription 1`] = `"The slim & simple Maple Gaming Keyboard from Dev Byte comes with a sleek body and 7- Color RGB LED Back-lighting for smart functionality"`; +exports[`commerce > 1211 > productDescription 1`] = `"Small Cheese designed with Wooden for right performance"`; exports[`commerce > 1211 > productMaterial 1`] = `"Wooden"`; @@ -102,7 +102,7 @@ exports[`commerce > 1337 > product 1`] = `"Chicken"`; exports[`commerce > 1337 > productAdjective 1`] = `"Generic"`; -exports[`commerce > 1337 > productDescription 1`] = `"Ergonomic executive chair upholstered in bonded black leather and PVC padded seat and back for all-day comfort and support"`; +exports[`commerce > 1337 > productDescription 1`] = `"Innovative Car featuring lawful technology and Fresh construction"`; exports[`commerce > 1337 > productMaterial 1`] = `"Fresh"`; diff --git a/test/modules/commerce.spec.ts b/test/modules/commerce.spec.ts index e009e930..ceca3a13 100644 --- a/test/modules/commerce.spec.ts +++ b/test/modules/commerce.spec.ts @@ -187,11 +187,10 @@ describe('commerce', () => { }); describe(`productDescription()`, () => { - it('should return random value from product description array', () => { + it('should return a product description string', () => { const actual = faker.commerce.productDescription(); - expect(faker.definitions.commerce.product_description).toContain( - actual - ); + expect(actual).toBeTruthy(); + expect(actual).toBeTypeOf('string'); }); }); |
