Files
NapCatQQ/.pnpm-store/v3/files/b0/1a8144c164db41e0fae48ef74b3f801af3a9ce8cdc58ee02750dc5b99f6f1f9f9cd4ee15846d3f8a1d5efc84c478032613de4babc337eca654e36ab260c43b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
442 B
Plaintext

'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();
});