Skip to content

Commit 2f7a14e

Browse files
committed
fixup week-of-year index in the old test and add test for new time formatting options namely q, u and W
1 parent c877e72 commit 2f7a14e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/jasmine/tests/lib_date_test.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,19 @@ describe('dates', function() {
571571
],
572572
[
573573
'%B \'%y WOY:%U DOW:%w',
574-
'August \'12 WOY:32 DOW:1',
574+
'August \'12 WOY:33 DOW:1',
575575
'Mesori \'28 WOY:## DOW:##' // world-cals doesn't support U or w
576576
],
577+
[
578+
'%B \'%y QOY:%q WOY:%W DOW:%u',
579+
'August \'12 QOY:3 WOY:33 DOW:1',
580+
'Mesori \'28 QOY:3 WOY:48 DOW:1'
581+
],
577582
[
578583
'%c && %x && .%2f .%f', // %<n>f is our addition
579-
'Mon Aug 13 06:19:34 2012 && 08/13/2012 && .57 .5678',
580-
'Pes Meso 7 06:19:34 1728 && 12/07/1728 && .57 .5678'
584+
'8/13/2012, 6:19:34 AM && 8/13/2012 && .57 .5678',
585+
'Pes Meso 7 6:19:34 AM 1728 && 12/07/1728 && .57 .5678'
581586
]
582-
583587
].forEach(function(v) {
584588
var fmt = v[0];
585589
var expectedGregorian = v[1];

0 commit comments

Comments
 (0)