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

Version Path
immosquare-cleaner-0.1.14 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.13 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.12 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.11 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.10 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.9 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.8 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.7 node_modules/object.fromentries/test/index.js
immosquare-cleaner-0.1.6 node_modules/object.fromentries/test/index.js
decidim-0.26.8 packages/eslint-config/node_modules/object.fromentries/test/index.js