From: Tim Wood Date: Tue, 23 Jul 2013 16:12:24 +0000 (-0700) Subject: Merge pull request #911 from ichernev/feature/uninstall-lang X-Git-Tag: 2.2.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b83c5ca6370fed0bae980e192f80a24975b11ef;p=thirdparty%2Fmoment.git Merge pull request #911 from ichernev/feature/uninstall-lang Added a way to uninstall a language definition --- 5b83c5ca6370fed0bae980e192f80a24975b11ef diff --cc test/moment/format.js index 1265a5944,2907cec6d..fd0e1e591 --- a/test/moment/format.js +++ b/test/moment/format.js @@@ -301,11 -298,12 +301,12 @@@ exports.format = test.done(); }, - "toJSON skips postformat" : function(test) { + "toJSON skips postformat" : function (test) { test.expect(1); - moment.lang('postformat', {postformat: function(s) { s.replace(/./g, 'X') }}); + moment.lang('postformat', {postformat: function (s) { s.replace(/./g, 'X'); }}); test.equal(moment.utc([2000, 0, 1]).toJSON(), "2000-01-01T00:00:00.000Z", "toJSON doesn't postformat"); + moment.lang('postformat', null); test.done(); } };