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