copy.js 223 B

12345678910
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var o = new Date(), o2;
  4. o2 = t.call(o);
  5. a.not(o, o2, "Different objects");
  6. a.ok(o2 instanceof Date, "Instance of Date");
  7. a(o.getTime(), o2.getTime(), "Same time");
  8. };