From aaeb5e6a3b1d85d5c300d3e5be4ba74259b43416 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Wed, 9 Aug 2017 14:57:55 +0300 Subject: [PATCH] Add strict parsing test for es-do --- src/test/locale/es-do.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/locale/es-do.js b/src/test/locale/es-do.js index 890ec6cf6..1538a7617 100644 --- a/src/test/locale/es-do.js +++ b/src/test/locale/es-do.js @@ -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'); }); -- 2.47.3