'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();
},
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');