From: Iskren Chernev Date: Thu, 24 Oct 2013 09:12:46 +0000 (-0700) Subject: Fixed iso is_valid tests X-Git-Tag: 2.4.0~9^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1212%2Fhead;p=thirdparty%2Fmoment.git Fixed iso is_valid tests In iso date-time format time is always separated by date with 'T', so make sure all tests that expect to go through the iso parser have a 'T'. --- diff --git a/test/moment/is_valid.js b/test/moment/is_valid.js index d00b275a7..f32b74483 100644 --- a/test/moment/is_valid.js +++ b/test/moment/is_valid.js @@ -128,9 +128,9 @@ exports.is_valid = { "invalid string iso 8601 + timezone" : function (test) { var tests = [ - '2010-00-00+00:00', - '2010-01-00+00:00', - '2010-01-40+00:00', + '2010-00-00T+00:00', + '2010-01-00T+00:00', + '2010-01-40T+00:00', '2010-01-40T24+00:00', '2010-01-40T23:60+00:00', '2010-01-40T23:59:60+00:00',