Browse Source

Update date-is_test.js

Fixing the future and past tests.

"the future is now, old man"
pull/926/head
Christopher Fremond 2 years ago committed by GitHub
parent
commit
3b20d93e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      js/tests/date-is_test.js

4
js/tests/date-is_test.js

@ -43,13 +43,13 @@ t(() => isBefore(new Date('2157-11-07'), new Date('2183-04-16')))
t(() => !invalid(isFuture))
t(() => !isFuture(new Date('1992-01-01')))
t(() => !isFuture(new Date(Date.now() - 1)))
t(() => isFuture(new Date(2021, 11, 31)))
t(() => isFuture(new Date(2077, 11, 31)))
t(() => isFuture(new Date(Date.now() + 1)))
// isPast
t(() => !invalid(isPast))
t(() => !isPast(new Date(Date.now() + 1)))
t(() => !isPast(new Date(2021, 11, 31)))
t(() => !isPast(new Date(2077, 11, 31)))
t(() => isPast(new Date(1442, 11, 31)))
t(() => isPast(new Date(Date.now() - 1)))

Loading…
Cancel
Save