Urara-Blog/node_modules/.pnpm-store/v3/files/a6/6b8866008a280364e8bf73282235eeb78f19ac4774c022630930deb9110df52c3b14840295d6f4066400ac22fbf8c4b04e684900515ef3b24aa24999187869
2022-08-14 01:14:53 +08:00

17 lines
420 B
Text

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