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