]> git.r.bdr.sh - rbdr/dotfiles/blob
3732192d1bbd1f0a658bcbe7f5f44e59444a91fa
[rbdr/dotfiles] /
1 'use strict';
2
3 module.exports = function (t, a) {
4 var x;
5 a.throws(function () { t(); }, TypeError, "Undefined");
6 a.throws(function () { t(null); }, TypeError, "Null");
7 a.throws(function () { t(0); }, TypeError, "Number");
8 a.throws(function () { t(true); }, TypeError, "Boolean");
9 a.throws(function () { t('raz'); }, TypeError, "String");
10 a.throws(function () { t(function () {}); }, TypeError, "Function");
11 a.throws(function () { t({}); }, TypeError, "Object");
12 a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
13 a(t(x = []), x, "Array");
14 };