Changing over to using timestamps.
This commit is contained in:
parent
2f9f643592
commit
df1555185d
|
@ -205,7 +205,7 @@ exports.test = async function (ctx) {
|
|||
// save a test history run
|
||||
await updateTestHistory(ctx.appId, automation, {
|
||||
...ctx.request.body,
|
||||
occurredAt: new Date().toISOString(),
|
||||
occurredAt: new Date().getTime(),
|
||||
})
|
||||
await clearTestFlag(automation._id)
|
||||
ctx.body = response
|
||||
|
|
|
@ -46,6 +46,7 @@ describe("/metadata", () => {
|
|||
const metadata = await getMetadata(MetadataTypes.AUTOMATION_TEST_HISTORY)
|
||||
expect(metadata).toBeDefined()
|
||||
expect(metadata.history.length).toBe(1)
|
||||
expect(typeof metadata.history[0].occurredAt).toBe("number")
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue