From: Tim Wood Date: Fri, 5 Oct 2012 22:38:10 +0000 (-0700) Subject: Fixing race condition that is causing failing TravisCI tests X-Git-Tag: 2.0.0~63^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F460%2Fhead;p=thirdparty%2Fmoment.git Fixing race condition that is causing failing TravisCI tests --- diff --git a/test/moment/format.js b/test/moment/format.js index a7f7e0526..a4147a67b 100644 --- a/test/moment/format.js +++ b/test/moment/format.js @@ -12,6 +12,8 @@ exports.format = { "format escape brackets" : function(test) { test.expect(9); + moment.lang('en'); + var b = moment(new Date(2009, 1, 14, 15, 25, 50, 125)); test.equal(b.format('[day]'), 'day', 'Single bracket'); test.equal(b.format('[day] YY [YY]'), 'day 09 YY', 'Double bracket');