diff options
author | Gagan Deep <pandafy.dev@gmail.com> | 2020-10-28 11:05:50 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-10-28 11:11:37 +0100 |
commit | 0ee3cbd988a388e090ce1ddebb328c2201fa8cfc (patch) | |
tree | 9c8d1b814c87f2a523961f65f9a1442ead2f0391 /js_tests | |
parent | 8593e162c9cb63a6c0b06daf045bc1c21eb4d7c1 (diff) | |
download | django-0ee3cbd988a388e090ce1ddebb328c2201fa8cfc.tar.gz |
Added unit test for Date.getFullMonthName.
Diffstat (limited to 'js_tests')
-rw-r--r-- | js_tests/admin/core.test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js_tests/admin/core.test.js b/js_tests/admin/core.test.js index 8bfa6f9bdc..a74efc6d3c 100644 --- a/js_tests/admin/core.test.js +++ b/js_tests/admin/core.test.js @@ -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'); |