95caba340a
* Added getHours function
9 lines
245 B
TypeScript
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);
|
|
});
|
|
|
|
|