Sha256: 81faa4c94d9fee4f3576ce9ed397d7adbf75c9e242099040ec4c39b0a67ba486
Contents?: true
Size: 418 Bytes
Versions: 16
Compression:
Stored size: 418 Bytes
Contents
'use strict'; var Iterator = require('../'); module.exports = function (t, a) { var obj; a.throws(function () { t(); }, TypeError, "Undefined"); a.throws(function () { t({}); }, TypeError, "Plain object"); a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like"); obj = { '@@iterator': function () { return new Iterator([]); } }; a(t(obj), obj, "Iterator"); obj = []; a(t(obj), obj, 'Array'); };
Version data entries
16 entries across 9 versions & 2 rubygems