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 ceb881e30a
commit 9f12fc686e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ describe('draft campaign coupon binding', () => {
.expect(400); .expect(400);
await expect( await expect(
ctx.executeSql( 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(); ).rejects.toThrow();
}); });