1
0

valid-date.js 235 B

123456789101112
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var d = new Date();
  4. a(t(d), d, "Date");
  5. a.throws(function () {
  6. t({});
  7. }, "Object");
  8. a.throws(function () {
  9. t({ valueOf: function () { return 20; } });
  10. }, "Number object");
  11. };