Files
NapCatQQ/.pnpm-store/v3/files/60/ec67df0f432f8588150c24d6205e78791eb3e61970a10b746375a81138713a9f141a34ae50d4726fd3f80394b3851aa4df4b4256485a11780f9d69a96aaa57
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
426 B
Plaintext

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