UNPKG

@qntm-code/utils

Version:

A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.

12 lines (11 loc) 344 B
import { getToday } from '../../../src'; describe('getToday', () => { it('should get todays date but the start of the day', () => { const today = new Date(); today.setHours(0); today.setMinutes(0); today.setSeconds(0); today.setMilliseconds(0); expect(getToday()).toEqual(today); }); });