diff --git a/models/baseModels/tests/testCouponCodes.spec.ts b/models/baseModels/tests/testCouponCodes.spec.ts index 2bb13aeb..a185c7d4 100644 --- a/models/baseModels/tests/testCouponCodes.spec.ts +++ b/models/baseModels/tests/testCouponCodes.spec.ts @@ -332,13 +332,8 @@ test('Coupon not applied: incorrect items added.', async (t) => { await sinv.append('coupons', { coupons: couponCodesMap[0].name }); await sinv.runFormulas(); - // await assertThrows( - // async () => - await sinv.sync(), - // 'Minimum Amount should be less than the Maximum Amount' - // ); - - t.equal(sinv.coupons?.length, 0, 'coupon code is not applied'); + await sinv.sync(); + t.equal(sinv.coupons?.length, 0, 'coupon code is not applied'); }); closeTestFyo(fyo, __filename);