From: Tim Wood Date: Mon, 28 Nov 2011 18:08:10 +0000 (-0800) Subject: Adding another 2 unit tests for #74 X-Git-Tag: 1.2.0~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=623e4f4ed067c246ced9d313042ed1537fb89f83;p=thirdparty%2Fmoment.git Adding another 2 unit tests for #74 --- diff --git a/sitesrc/js/unit-tests.js b/sitesrc/js/unit-tests.js index 2f2c40ebb..33da1392f 100755 --- a/sitesrc/js/unit-tests.js +++ b/sitesrc/js/unit-tests.js @@ -58,7 +58,7 @@ test("string without format", 2, function() { }); -test("string with format", 13, function() { +test("string with format", 17, function() { var a = [ ['MM-DD-YYYY', '12-02-1999'], ['DD-MM-YYYY', '12-02-1999'], @@ -72,7 +72,9 @@ test("string with format", 13, function() { ['DD-MM-YYYY h:m:s a', '12-02-1999 2:45:10 am'], ['DD-MM-YYYY h:m:s a', '12-02-1999 2:45:10 pm'], ['h:mm a', '12:00 pm'], + ['h:mm a', '12:30 pm'], ['h:mm a', '12:00 am'], + ['h:mm a', '12:30 am'], ['YYYY-MM-DDTHH:mm:ss', '2011-11-11T11:11:11'], ['MM-DD-YYYY \\M', '12-02-1999 M'] ],