Sha256: 7e8c6679518e525ac18873f12ef8c9313b5a908f94da59de6292bf97ef7a6ddc

Contents?: true

Size: 442 Bytes

Versions: 44

Compression:

Stored size: 442 Bytes

Contents

'use strict';

var includes = 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 () { includes(undefined, 'a'); }, TypeError, 'undefined is not an object');
		st['throws'](function () { includes(null, 'a'); }, TypeError, 'null is not an object');
		st.end();
	});

	runTests(includes, t);

	t.end();
});

Version data entries

44 entries across 44 versions & 3 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.50 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.49 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.48 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.47 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.46 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.45 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.44 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.43 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.42 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.41 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.40 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.39 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.38 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.32 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.31 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.30 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.29 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.28 node_modules/array-includes/test/index.js
immosquare-cleaner-0.1.27 node_modules/array-includes/test/index.js