Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Leach <[email protected]>
  • Loading branch information
jleach committed Jul 22, 2024
1 parent 430526c commit eb2fe2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/__tests__/helpers/Utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ describe('Helpers', () => {

expect(value).toBe(27)
})

test('ignore distant expirations ', () => {
const dateInThePast = new Date('2024-07-09T19:23:44.200Z')
const value = expirationOverrideInMinutes(dateInThePast, 60)

expect(value).toBe(0)
})
})

0 comments on commit eb2fe2c

Please sign in to comment.