From: Tim Wood Date: Wed, 23 Jan 2013 18:18:24 +0000 (-0800) Subject: failing tests for #593 X-Git-Tag: 2.0.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d02433aad24dea44b0c795b539ba43e949506e;p=thirdparty%2Fmoment.git failing tests for #593 --- diff --git a/test/moment/create.js b/test/moment/create.js index 641d5dc3f..c5419dea6 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -56,6 +56,13 @@ exports.create = { test.done(); }, + "cloning moment should only copy own properties" : function(test) { + test.expect(2); + test.ok(!moment().clone().hasOwnProperty('month'), "Should not clone prototype methods"); + test.ok(!moment().clone().hasOwnProperty('_lang'), "Should not clone prototype objects"); + test.done(); + }, + "undefined" : function(test) { test.expect(1); test.ok(moment().toDate() instanceof Date, "undefined");