Files
NapCatQQ/.pnpm-store/v3/files/3b/373af3f92ddfbc61b96a7a80a7ec1442fdf03b77ea4f33b82179fab3510ed1ef21481dc7ec558366285b0df034eb8e5301f7f1799e49f9b0529948c57d05a1
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
448 B
Plaintext

'use strict';
var flatten = 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'](flatten.bind(null, undefined, function () {}), TypeError, 'undefined is not an object');
st['throws'](flatten.bind(null, null, function () {}), TypeError, 'null is not an object');
st.end();
});
runTests(flatten, t);
t.end();
});