From 6cd3b96b0495307f918e328db5288d89c0e3fb31 Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Thu, 24 Oct 2013 02:12:46 -0700 Subject: [PATCH] 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'. --- test/moment/is_valid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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', -- 2.47.2