@qntm-code/utils
Version:
A collection of useful utility functions with associated TypeScript types. All functions have been unit tested.
11 lines (10 loc) • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const __1 = require("../..");
describe('setEndOfMonth', () => {
it('hours should be set to 23, minutes and seconds to 59, milliseconds to 999, and day to the last of the month', () => {
const value = new Date(2020, 0, 31, 15, 31, 22, 123);
const expected = new Date(2020, 0, 31, 23, 59, 59, 999);
expect((0, __1.setEndOfMonth)(value)).toEqual(expected);
});
});