Cast to number for the comparison

This commit is contained in:
zhongruige 2020-12-29 10:38:36 -07:00
parent e3765dc650
commit f472d3cc0f
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ const runOrderApplyCouponTest = () => {
]);
// Make sure the simple product price is greater than the coupon amount
await expect(simpleProductPrice).toBeGreaterThan(5.00);
await expect(Number(simpleProductPrice)).toBeGreaterThan(5.00);
} );
it('can apply a coupon', async () => {