aboutsummaryrefslogtreecommitdiff
path: root/test/modules/commerce.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/modules/commerce.spec.ts')
-rw-r--r--test/modules/commerce.spec.ts7
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');
});
});