From: Iskren Chernev Date: Sun, 23 Nov 2014 09:24:53 +0000 (-0800) Subject: Style changes in tests X-Git-Tag: 2.9.0~23^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f5e40bad65f4ec9c1de5fc1694f2cf19f35a73;p=thirdparty%2Fmoment.git Style changes in tests --- diff --git a/test/moment/create.js b/test/moment/create.js index cce7d3ee2..cc766c4c4 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -76,8 +76,8 @@ exports.create = { 'number' : function (test) { test.expect(3); test.ok(moment(1000).toDate() instanceof Date, '1000'); - test.ok((moment(1000).valueOf() === 1000), 'testing valueOf'); - test.ok((moment.utc(1000).valueOf() === 1000), 'testing valueOf'); + test.equal(moment(1000).valueOf(), 1000, 'testing valueOf'); + test.equal(moment.utc(1000).valueOf(), 1000, 'testing utc valueOf'); test.done(); }, diff --git a/test/moment/format.js b/test/moment/format.js index 3252c339b..68194ba98 100644 --- a/test/moment/format.js +++ b/test/moment/format.js @@ -396,7 +396,8 @@ exports.format = { for (i = 0; i < zones.length; ++i) { z = zones[i]; a = moment().zone(z).startOf('day').subtract({m: 1}); - test.equal(moment(a).zone(z).calendar(), 'Yesterday at 11:59 PM', 'Yesterday at 11:59 PM, not Today, or the wrong time'); + test.equal(moment(a).zone(z).calendar(), 'Yesterday at 11:59 PM', + 'Yesterday at 11:59 PM, not Today, or the wrong time, tz = ' + z); } test.equal(moment(b).utc().calendar(), 'Yesterday at 11:59 PM', 'Yesterday at 11:59 PM, not Today, or the wrong time');