]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixing race condition that is causing failing TravisCI tests 460/head
authorTim Wood <washwithcare@gmail.com>
Fri, 5 Oct 2012 22:38:10 +0000 (15:38 -0700)
committerTim Wood <washwithcare@gmail.com>
Fri, 5 Oct 2012 22:38:10 +0000 (15:38 -0700)
test/moment/format.js

index a7f7e05264e6744d11fdb4f2203f1a1f29996591..a4147a67bb49bace583542ea4e472d5bbaca2795 100644 (file)
@@ -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');