Sha256: 3db1392205f9cbabd0dfb45894209cda815896bbb11218a370620e461705daee
Contents?: true
Size: 444 Bytes
Versions: 50
Compression:
Stored size: 444 Bytes
Contents
'use strict'; var fromEntries = require('../'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { t.test('bad array/this value', function (st) { st['throws'](function () { fromEntries(undefined); }, TypeError, 'undefined is not an object'); st['throws'](function () { fromEntries(null); }, TypeError, 'null is not an object'); st.end(); }); runTests(fromEntries, t); t.end(); });
Version data entries
50 entries across 50 versions & 2 rubygems