mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Added unit test for Date.getFullMonthName.
This commit is contained in:
parent
8593e162c9
commit
0ee3cbd988
@ -40,6 +40,11 @@ QUnit.test('Date.getTwoDigitSecond', function(assert) {
|
||||
assert.equal(new Date(2014, 6, 1, 0, 0, 20).getTwoDigitSecond(), '20', '12:00:20 am is 20');
|
||||
});
|
||||
|
||||
QUnit.test('Date.getFullMonthName', function(assert) {
|
||||
assert.equal(new Date(2020, 0, 26).getFullMonthName(), 'January', 'jan 26');
|
||||
assert.equal(new Date(2020, 9, 26).getFullMonthName(), 'October', 'oct 26');
|
||||
});
|
||||
|
||||
QUnit.test('Date.strftime', function(assert) {
|
||||
const date = new Date(2014, 6, 1, 11, 0, 5);
|
||||
assert.equal(date.strftime('%Y-%m-%d %H:%M:%S'), '2014-07-01 11:00:05');
|
||||
|
Loading…
Reference in New Issue
Block a user