aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/utils/time.test.ts
blob: 3cd23df55770f21674afd4ea8d18fbbc01f4e82a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import {startDaysBetween} from './time.ts';

test('startDaysBetween', () => {
  expect(startDaysBetween(new Date('2024-02-15'), new Date('2024-04-18'))).toEqual([
    1708214400000,
    1708819200000,
    1709424000000,
    1710028800000,
    1710633600000,
    1711238400000,
    1711843200000,
    1712448000000,
    1713052800000,
  ]);
});