]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Add strict parsing test for es-do
authorIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Aug 2017 11:57:55 +0000 (14:57 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 9 Aug 2017 11:57:55 +0000 (14:57 +0300)
src/test/locale/es-do.js

index 890ec6cf6e368435afb28f3a4ef5f770126d9903..1538a7617dbd570b629cd87cc81c8583fda16465 100644 (file)
@@ -213,7 +213,8 @@ test('weeks year starting sunday formatted', function (assert) {
 
 test('test short months proper', function (assert) {
     var str = '02-ago-2016'; // "02-ago-2016"
-    assert.equal(moment(str, 'DD-MMM-YYYY').month(), '7', '02-ago-2016 month should be 7');
+    assert.equal(moment(str, 'DD-MMM-YYYY').month(), 7, '02-ago-2016 month should be 7');
+    assert.equal(moment(str, 'DD-MMM-YYYY', true).month(), 7, '02-ago-2016 strict parse month should be 7');
 });