source: trip-planner-front/node_modules/regexp.prototype.flags/test/index.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 420 bytes
Line 
1'use strict';
2
3var flags = require('../');
4var test = require('tape');
5var runTests = require('./tests');
6
7test('as a function', function (t) {
8 t.test('bad array/this value', function (st) {
9 st['throws'](function () { flags(undefined); }, TypeError, 'undefined is not an object');
10 st['throws'](function () { flags(null); }, TypeError, 'null is not an object');
11 st.end();
12 });
13
14 runTests(flags, t);
15
16 t.end();
17});
Note: See TracBrowser for help on using the repository browser.