]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Removed comments that jshint failed on
authorXotic750 <xotic750@gmail.com>
Sat, 14 Sep 2013 23:56:38 +0000 (01:56 +0200)
committerXotic750 <xotic750@gmail.com>
Sat, 14 Sep 2013 23:56:38 +0000 (01:56 +0200)
test/moment/is_valid.js

index 5017993ce86cf70e0dbb60f60f526c9208a72728..df1d698d3dcfe4c167405817485dc0b3194af2df 100644 (file)
@@ -175,10 +175,8 @@ exports.is_valid = {
     },
 
     "valid Unix timestamp" : function (test) {
-        test.expect(22);
+        test.expect(21);
         test.equal(moment(1371065286, "X").isValid(), true, 'number integer');
-        // jshint won't allow this test
-        //test.equal(moment(1379066897., "X").isValid(), true, 'number trailing .');
         test.equal(moment(1379066897.0, "X").isValid(), true, 'number whole 1dp');
         test.equal(moment(1379066897.7, "X").isValid(), true, 'number 1dp');
         test.equal(moment(1379066897.00, "X").isValid(), true, 'number whole 2dp');