Update ayn.om.test.js

This commit is contained in:
freearhey
2026-04-11 23:21:07 +03:00
parent c6deb4c630
commit ba5be224bf

View File

@@ -16,7 +16,7 @@ it('can generate valid url', () => {
}) })
it('can parse response for today', () => { it('can parse response for today', () => {
jest.useFakeTimers().setSystemTime(new Date('2026-04-08')) jest.useFakeTimers().setSystemTime(new Date('2026-04-08').getTime())
const date = dayjs.utc('2026-04-08', 'YYYY-MM-DD').startOf('d') const date = dayjs.utc('2026-04-08', 'YYYY-MM-DD').startOf('d')
const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.html')) const content = fs.readFileSync(path.resolve(__dirname, '__data__/content.html'))