Skip to content

Commit d662a84

Browse files
committed
expect timer to return $interval if interval divides in evenly
1 parent 484c32b commit d662a84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/timer/__tests__/timer.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import {msUntilIntervalRepeat} from '../index'
55
describe('msUntilIntervalRepeat', () => {
66
test.each`
77
now | interval | expected
8-
${100} | ${10} | ${0}
9-
${1536625260000} | ${60000} | ${0}
10-
${60000} | ${60000} | ${0}
8+
${100} | ${10} | ${10}
9+
${1536625260000} | ${60000} | ${60000}
10+
${60000} | ${60000} | ${60000}
1111
${35} | ${60} | ${25}
1212
${110} | ${100} | ${90}
1313
${1} | ${9} | ${8}
14-
${1000} | ${20} | ${0}
14+
${1000} | ${20} | ${20}
1515
${9} | ${20} | ${11}
1616
`(
1717
'returns remaining: $expected with now: $now and interval: $interval',

0 commit comments

Comments
 (0)