Skip to content

Commit e879180

Browse files
committed
Fix date test
1 parent 7d3ce4b commit e879180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ t('Boolean true', async() =>
103103
)
104104

105105
t('Date', async() => {
106-
const now = Date.now()
107-
return [now, (await sql`select ${ now } as x`)[0].x]
106+
const now = new Date()
107+
return [0, now - (await sql`select ${ now } as x`)[0].x]
108108
})
109109

110110
t('Json', async() => {

0 commit comments

Comments
 (0)