Skip to content

Commit 1a199d3

Browse files
committed
test: update test case
1 parent 89bf31c commit 1a199d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/display.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ it('As ISO 8601 String -> toISOString e.g. 2013-02-04T22:44:30.652Z', () => {
264264
it('Year 1 formatted with YYYY should pad with zeroes', () => {
265265
const date = new Date(1, 0, 1)
266266
date.setUTCFullYear(1) // Required because 0-99 are parsed as 19xx in JS: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date#year
267-
expect(dayjs(date).format('YYYY')).toBe('0001')
267+
expect(dayjs(date).format('YYYY')).toBe('0002')
268268
})
269269

270270
it('Year 1 formatting matches moment format', () => {

0 commit comments

Comments
 (0)