shim.js 269 B

123456789101112
  1. "use strict";
  2. module.exports = function (t, a) {
  3. a.deep(t({ foo: "bar" }), ["foo"], "Object");
  4. a.deep(t("raz"), ["0", "1", "2"], "Primitive");
  5. a.throws(function () {
  6. t();
  7. }, TypeError, "Undefined");
  8. a.throws(function () {
  9. t(null);
  10. }, TypeError, "Undefined");
  11. };