ensure-thenable.js 229 B

1234567891011
  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 () {
  6. t({});
  7. }, TypeError);
  8. a(t(thenable), thenable);
  9. };