Merge branch 'master' into budi-8222/deleting-a-column-on-google-spreadsheet-messes-with-the-data
This commit is contained in:
commit
19dc0d1f46
|
@ -44,7 +44,7 @@ describe.each([
|
||||||
const snippets = [
|
const snippets = [
|
||||||
{
|
{
|
||||||
name: "WeeksAgo",
|
name: "WeeksAgo",
|
||||||
code: "return function (weeks) {\n const currentTime = new Date();\n currentTime.setDate(currentTime.getDate()-(7 * (weeks || 1)));\n return currentTime.toISOString();\n}",
|
code: `return function (weeks) {\n const currentTime = new Date(${Date.now()});\n currentTime.setDate(currentTime.getDate()-(7 * (weeks || 1)));\n return currentTime.toISOString();\n}`,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ describe.each(
|
||||||
let res = await setup.runStep(setup.actions.EXECUTE_QUERY.stepId, {
|
let res = await setup.runStep(setup.actions.EXECUTE_QUERY.stepId, {
|
||||||
query: { queryId: "wrong_id" },
|
query: { queryId: "wrong_id" },
|
||||||
})
|
})
|
||||||
expect(res.response).toEqual("Error: missing")
|
expect(res.response).toEqual("Error: CouchDB error: missing")
|
||||||
expect(res.success).toEqual(false)
|
expect(res.success).toEqual(false)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue