1
0
Fork 0
mirror of synced 2024-08-23 14:01:34 +12:00

Fix flaky test

This commit is contained in:
Adria Navarro 2024-05-20 16:57:03 +02:00
parent 684e360715
commit 7d709d0d22

View file

@ -407,8 +407,7 @@ describe.each([
})
it("should parse the encoded js binding. Return rows with appointments 2 weeks in the past", async () => {
const jsBinding =
"const currentTime = new Date()\ncurrentTime.setDate(currentTime.getDate()-14);\nreturn currentTime.toISOString();"
const jsBinding = `const currentTime = new Date(${Date.now()})\ncurrentTime.setDate(currentTime.getDate()-14);\nreturn currentTime.toISOString();`
const encodedBinding = encodeJSBinding(jsBinding)
await expectQuery({