ensure-thenable.js 226 B

123456789
  1. "use strict";
  2. module.exports = function (t, a) {
  3. // Just sanity checks as proper tests are at isThenable
  4. var thenable = { then: function () {} };
  5. a.throws(function () { t({}); }, TypeError);
  6. a(t(thenable), thenable);
  7. };