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/commerce.spec.ts | |
| parent | 6a9ca8abec3d8956b45a8607a5371b61de85378a (diff) | |
| download | faker-ba4ef9a5a671ffc6ed10db7fed896dccda90dca1.tar.xz faker-ba4ef9a5a671ffc6ed10db7fed896dccda90dca1.zip | |
feat(commerce): more varied product descriptions (#3174)
Diffstat (limited to 'test/modules/commerce.spec.ts')
| -rw-r--r-- | test/modules/commerce.spec.ts | 7 |
1 files changed, 3 insertions, 4 deletions
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'); }); }); |
