utils/ts-src/getDays.test.ts
Martin Donnelly 95caba340a * Updated packages
* Added getHours function
2021-05-16 22:20:46 +01:00

9 lines
245 B
TypeScript

import { getDays} from "./getDays";
test('Should return the correct number of days', () => {
expect(getDays(new Date(2021,0,1), new Date(2021,0,11))).toEqual(10);
expect(getDays(new Date(2021,0,11), new Date(2021,0,1))).toEqual(-10);
});