]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed iso is_valid tests 1212/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 24 Oct 2013 09:12:46 +0000 (02:12 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 24 Oct 2013 09:12:46 +0000 (02:12 -0700)
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

index d00b275a77fe1fdf4494a7f774c045a8de95dfe8..f32b744835ebc6354081ace7ef8f481131248528 100644 (file)
@@ -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',