We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 484c32b commit d662a84Copy full SHA for d662a84
modules/timer/__tests__/timer.test.js
@@ -5,13 +5,13 @@ import {msUntilIntervalRepeat} from '../index'
5
describe('msUntilIntervalRepeat', () => {
6
test.each`
7
now | interval | expected
8
- ${100} | ${10} | ${0}
9
- ${1536625260000} | ${60000} | ${0}
10
- ${60000} | ${60000} | ${0}
+ ${100} | ${10} | ${10}
+ ${1536625260000} | ${60000} | ${60000}
+ ${60000} | ${60000} | ${60000}
11
${35} | ${60} | ${25}
12
${110} | ${100} | ${90}
13
${1} | ${9} | ${8}
14
- ${1000} | ${20} | ${0}
+ ${1000} | ${20} | ${20}
15
${9} | ${20} | ${11}
16
`(
17
'returns remaining: $expected with now: $now and interval: $interval',
0 commit comments