From: Rocky Meza Date: Fri, 3 Aug 2012 03:49:28 +0000 (-0600) Subject: failing tests related to #380 X-Git-Tag: 1.7.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb74f16f462203c4f8eb92fd74bd37c805ba1ea;p=thirdparty%2Fmoment.git failing tests related to #380 --- diff --git a/test/moment/format.js b/test/moment/format.js index 3f38173f8..1ca774f2f 100644 --- a/test/moment/format.js +++ b/test/moment/format.js @@ -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(); },