fix(test): use stored campaign dates for coupon window checks

This commit is contained in:
mihir 2026-10-06 17:34:59 +05:30
parent 42044e84f6
commit 5812578849
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ describe('draft campaign coupon binding', () => {
.expect(400);
await expect(
ctx.executeSql(
`UPDATE seasonal_campaigns SET ends_at = NOW() + INTERVAL '1 second', version = version + 1 WHERE id = '${campaignId}'`,
`UPDATE seasonal_campaigns SET ends_at = starts_at + INTERVAL '1 second', version = version + 1 WHERE id = '${campaignId}'`,
),
).rejects.toThrow();
});