6b8866008a280364e8bf73282235eeb78f19ac4774c022630930deb9110df52c3b14840295d6f4066400ac22fbf8c4b04e684900515ef3b24aa24999187869 420 B

1234567891011121314151617
  1. 'use strict';
  2. var flags = require('../');
  3. var test = require('tape');
  4. var runTests = require('./tests');
  5. test('as a function', function (t) {
  6. t.test('bad array/this value', function (st) {
  7. st['throws'](function () { flags(undefined); }, TypeError, 'undefined is not an object');
  8. st['throws'](function () { flags(null); }, TypeError, 'null is not an object');
  9. st.end();
  10. });
  11. runTests(flags, t);
  12. t.end();
  13. });