Skip to content

Commit

Permalink
fix: deflake test
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Sep 9, 2024
1 parent d5da2fd commit ec80c28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ test.describe(() => {
expect(newSession).toBeDefined()
expect(newSession.active).toBe(true)

expect(initialSession.authenticated_at).not.toEqual(
newSession.authenticated_at,
)
const initDate = Date.parse(initialSession.authenticated_at)
const newDate = Date.parse(newSession.authenticated_at)
expect(newDate).toBeGreaterThanOrEqual(initDate)
})
})

0 comments on commit ec80c28

Please sign in to comment.