Skip to content

Commit 0b220c1

Browse files
committed
Fix dates in tests
1 parent ef2f35d commit 0b220c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ test('sitemap', function (t) {
369369
{
370370
url: 'https://example.com',
371371
lang: 'en',
372-
modified: new Date(2017),
372+
modified: new Date(1234567890123),
373373
alternate: {nl: 'https://example.nl'}
374374
}
375375
]).children[1].children,
@@ -389,7 +389,7 @@ test('sitemap', function (t) {
389389
type: 'element',
390390
name: 'lastmod',
391391
attributes: {},
392-
children: [{type: 'text', value: '1970-01-01T00:00:02.017Z'}]
392+
children: [{type: 'text', value: '2009-02-13T23:31:30.123Z'}]
393393
},
394394
{
395395
type: 'element',
@@ -428,7 +428,7 @@ test('sitemap', function (t) {
428428
type: 'element',
429429
name: 'lastmod',
430430
attributes: {},
431-
children: [{type: 'text', value: '1970-01-01T00:00:02.017Z'}]
431+
children: [{type: 'text', value: '2009-02-13T23:31:30.123Z'}]
432432
},
433433
{
434434
type: 'element',
@@ -461,10 +461,10 @@ test('sitemap', function (t) {
461461
{
462462
url: 'https://example.com',
463463
lang: 'en',
464-
modified: new Date(2017, 1),
464+
modified: new Date(1234567890123),
465465
alternate: {nl: 'https://example.nl'}
466466
},
467-
{url: 'https://example.nl', lang: 'nl', modified: new Date(2018, 1)}
467+
{url: 'https://example.nl', lang: 'nl', modified: new Date(1231111111111)}
468468
]).children[1].children,
469469
[
470470
{
@@ -482,7 +482,7 @@ test('sitemap', function (t) {
482482
type: 'element',
483483
name: 'lastmod',
484484
attributes: {},
485-
children: [{type: 'text', value: '2017-01-31T23:00:00.000Z'}]
485+
children: [{type: 'text', value: '2009-02-13T23:31:30.123Z'}]
486486
},
487487
{
488488
type: 'element',
@@ -521,7 +521,7 @@ test('sitemap', function (t) {
521521
type: 'element',
522522
name: 'lastmod',
523523
attributes: {},
524-
children: [{type: 'text', value: '2018-01-31T23:00:00.000Z'}]
524+
children: [{type: 'text', value: '2009-01-04T23:18:31.111Z'}]
525525
},
526526
{
527527
type: 'element',

0 commit comments

Comments
 (0)