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

18 lines
444 B
Plaintext

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