UNPKG

javascript-time-ago

Version:

Localized relative date/time formatting

11 lines 416 B
import { describe, it } from 'mocha'; import { expect } from 'chai'; import { getDate } from './helpers.js'; describe('steps/helpers', function () { it('should convert value to Date', function () { var today = new Date(); expect(getDate(today.getTime()).getTime()).to.equal(today.getTime()); expect(getDate(today).getTime()).to.equal(today.getTime()); }); }); //# sourceMappingURL=helpers.test.js.map