]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Added Sep/Sept parsing test
authorMayank Badola <badola21295@gmail.com>
Fri, 13 Nov 2015 07:33:42 +0000 (13:03 +0530)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Dec 2015 07:06:48 +0000 (23:06 -0800)
src/test/moment/is_valid.js

index 9b70b6c4f93dc95f40b103d20c9b68233664ec08..0f0ba5d398f1145e603f8daf88bb8821682b830f 100644 (file)
@@ -76,6 +76,7 @@ test('string with bad month name', function (assert) {
 });
 
 test('string with spaceless format', function (assert) {
+    assert.equal(moment('10Sep2001', 'DDMMMYYYY').isValid(), true, 'Parsing 10Sep2001 should result in a valid date');
     assert.equal(moment('10Sept2001', 'DDMMMYYYY').isValid(), true, 'Parsing 10Sept2001 should result in a valid date');
 });