]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
test updates for en-GB time formatting 797/head
authorGabriel Dibble <gdibble@gmail.com>
Thu, 23 May 2013 03:58:52 +0000 (21:58 -0600)
committerGabriel Dibble <gdibble@gmail.com>
Thu, 23 May 2013 03:58:52 +0000 (21:58 -0600)
ex. 2:00 AM >>> 02:00

test/lang/en-gb.js

index f176f8c0cf20f1d8f1d81e22e7c85e34508c62ef..a721a4d638d5ce1e2052a276808da8310846a74a 100644 (file)
@@ -56,12 +56,12 @@ exports["lang:en-gb"] = {
                 ['[the] DDDo [day of the year]',       'the 45th day of the year'],
                 ['L',                                  '14/02/2010'],
                 ['LL',                                 '14 February 2010'],
-                ['LLL',                                '14 February 2010 3:25 PM'],
-                ['LLLL',                               'Sunday, 14 February 2010 3:25 PM'],
+                ['LLL',                                '14 February 2010 15:25'],
+                ['LLLL',                               'Sunday, 14 February 2010 15:25'],
                 ['l',                                  '14/2/2010'],
                 ['ll',                                 '14 Feb 2010'],
-                ['lll',                                '14 Feb 2010 3:25 PM'],
-                ['llll',                               'Sun, 14 Feb 2010 3:25 PM']
+                ['lll',                                '14 Feb 2010 15:25'],
+                ['llll',                               'Sun, 14 Feb 2010 15:25']
             ],
             b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
             i;
@@ -191,12 +191,12 @@ exports["lang:en-gb"] = {
 
         var a = moment().hours(2).minutes(0).seconds(0);
 
-        test.equal(moment(a).calendar(),                     "Today at 2:00 AM",     "today at the same time");
-        test.equal(moment(a).add({ m: 25 }).calendar(),      "Today at 2:25 AM",     "Now plus 25 min");
-        test.equal(moment(a).add({ h: 1 }).calendar(),       "Today at 3:00 AM",     "Now plus 1 hour");
-        test.equal(moment(a).add({ d: 1 }).calendar(),       "Tomorrow at 2:00 AM",  "tomorrow at the same time");
-        test.equal(moment(a).subtract({ h: 1 }).calendar(),  "Today at 1:00 AM",     "Now minus 1 hour");
-        test.equal(moment(a).subtract({ d: 1 }).calendar(),  "Yesterday at 2:00 AM", "yesterday at the same time");
+        test.equal(moment(a).calendar(),                     "Today at 02:00",      "today at the same time");
+        test.equal(moment(a).add({ m: 25 }).calendar(),      "Today at 02:25",      "Now plus 25 min");
+        test.equal(moment(a).add({ h: 1 }).calendar(),       "Today at 03:00",      "Now plus 1 hour");
+        test.equal(moment(a).add({ d: 1 }).calendar(),       "Tomorrow at 02:00",   "tomorrow at the same time");
+        test.equal(moment(a).subtract({ h: 1 }).calendar(),  "Today at 01:00",      "Now minus 1 hour");
+        test.equal(moment(a).subtract({ d: 1 }).calendar(),  "Yesterday at 02:00",  "yesterday at the same time");
         test.done();
     },