Skip to content

Commit d4832e2

Browse files
committed
tests updated
1 parent 68ffdf7 commit d4832e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/token.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe.each([{ permission: 'Admin' }])(
160160
const [_, payload] = token.split('.')
161161
const searchClient = new MeiliSearch({ host: HOST, apiKey: token })
162162

163-
expect(JSON.parse(decode64(payload)).exp).toEqual(date.getTime())
163+
expect(JSON.parse(decode64(payload)).exp).toEqual(Math.floor(date.getTime() / 1000))
164164
expect(searchClient.index(UID).search()).resolves.not.toBeUndefined()
165165
})
166166

0 commit comments

Comments
 (0)