Sha256: 6162ff53251946fe79887755e66af2bbd1691e74ce4c2017522f7b405eb826d0
Contents?: true
Size: 516 Bytes
Versions: 15
Compression:
Stored size: 516 Bytes
Contents
'use strict'; module.exports = function (t, a) { var x; a.throws(function () { t(); }, TypeError, "Undefined"); a.throws(function () { t(null); }, TypeError, "Null"); a(t(0), "0"); a(t(false), "false"); a(t(''), ""); a(t({}), String({}), "Object"); a(t(x = function () {}), String(x), "Function"); a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore a(t(x = new Date()), String(x), "Date"); a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object"); };
Version data entries
15 entries across 12 versions & 6 rubygems