mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Add field report tests for bug in %U in #56
This commit is contained in:
parent
1d4365f3d5
commit
002ac8ca4c
1 changed files with 3 additions and 0 deletions
3
test.js
3
test.js
|
|
@ -115,6 +115,9 @@ assert.format('%z', null, '+0000');
|
|||
assert.format('%:z', null, '+00:00');
|
||||
assert.format('%%', '%'); // any other char
|
||||
assert.format('%F %T', null, '1970-01-01 00:00:00', new Date(0));
|
||||
assert.format('%U', '13', "12", (new Date('03-26-2017 00:00:00')));
|
||||
assert.format('%U', '13', null, (new Date('03-27-2017 00:00:00')));
|
||||
assert.format('%U', '14', "13", (new Date('04-02-2017 00:00:00')));
|
||||
ok('GMT');
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue