fix(test): use stored campaign dates for coupon window checks
This commit is contained in:
parent
ceb881e30a
commit
9f12fc686e
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue