brazilianutils
Version:
Lots of utilities for Node.js
24 lines (18 loc) • 580 B
JavaScript
;
var dateUtils = require('../lib/dateUtils');
module.exports = {
'__name': { '': function(test) { test.done(); } },
'__description': { '': function(test) { test.done(); } },
unixTime: {
'Tests basic functionality': function(test) {
test.equal(dateUtils.unixTime(new Date(1970, 0, 1), 0), 0);
test.done();
}
},
isValidDate: {
'Verifies that a Date is not valid': function(test) {
test.equal(dateUtils.isValidDate(new Date('foo')), false);
test.done();
}
}
};