]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed a bug in string_prototype test
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 12 Sep 2013 08:15:50 +0000 (01:15 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 12 Sep 2013 08:15:50 +0000 (01:15 -0700)
test/moment/string_prototype.js

index 341552a714fe17edcb72d59bdae795b6630afb8a..07cde9ca9a9ff7e9ecab7a0608a57c7deb8c7b60 100644 (file)
@@ -1,9 +1,10 @@
 var moment = require("../../moment");
 
-exports.add = {
+exports.string_prototype = {
     "string prototype overrides call" : function (test) {
         test.expect(1);
 
+        moment.lang('en');
         var prior = String.prototype.call, b;
         String.prototype.call = function () { return null; };