init source

This commit is contained in:
Le Viet
2022-03-07 22:07:57 +07:00
parent e4376f3777
commit 8aba590a8d
11240 changed files with 1012977 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
'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(includes.bind(null, undefined, 'a'), TypeError, 'undefined is not an object');
st.throws(includes.bind(null, null, 'a'), TypeError, 'null is not an object');
st.end();
});
runTests(includes, t);
t.end();
});