]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
more comprehensive tests for #380
authorRocky Meza <rocky@fusionbox.com>
Fri, 3 Aug 2012 04:14:47 +0000 (22:14 -0600)
committerRocky Meza <rocky@fusionbox.com>
Fri, 3 Aug 2012 04:14:47 +0000 (22:14 -0600)
test/moment/format.js

index 1ca774f2fa2119a7d9a0797030a18b3ecdc443c7..3fe3f745ea09a36d33f117b3ac03034145b543c4 100644 (file)
@@ -19,7 +19,7 @@ exports.format = {
         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.equal(b.format('[L] L'), 'L 02/14/2009', 'localized tokens with escaped localized tokens');
         test.done();
     },