]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
failing tests related to #380
authorRocky Meza <rocky@fusionbox.com>
Fri, 3 Aug 2012 03:49:28 +0000 (21:49 -0600)
committerRocky Meza <rocky@fusionbox.com>
Fri, 3 Aug 2012 03:49:28 +0000 (21:49 -0600)
test/moment/format.js

index 3f38173f81a2f0a64d6ba70b5cfefaaadb4558c4..1ca774f2fa2119a7d9a0797030a18b3ecdc443c7 100644 (file)
@@ -10,7 +10,7 @@ exports.format = {
     },
 
     "format escape brackets" : function(test) {
-        test.expect(5);
+        test.expect(7);
 
         var b = moment(new Date(2009, 1, 14, 15, 25, 50, 125));
         test.equal(b.format('[day]'), 'day', 'Single bracket');
@@ -18,6 +18,8 @@ exports.format = {
         test.equal(b.format('[YY'), '[09', 'Un-ended bracket');
         test.equal(b.format('[[YY]]'), '[YY]', 'Double nested brackets');
         test.equal(b.format('[[]'), '[', 'Escape open bracket');
+        test.equal(b.format('[Last]'), 'Last', 'localized tokens');
+        test.equal(b.format('[LLL]'), 'LLL', 'localized tokens');
         test.done();
     },