1 | ;
|
2 |
|
3 | var entries = require('../');
|
4 | var test = require('tape');
|
5 |
|
6 | test('as a function', function (t) {
|
7 | t.test('bad array/this value', function (st) {
|
8 | st.throws(function () { entries(undefined); }, TypeError, 'undefined is not an object');
|
9 | st.throws(function () { entries(null); }, TypeError, 'null is not an object');
|
10 | st.end();
|
11 | });
|
12 |
|
13 | require('./tests')(entries, t);
|
14 |
|
15 | t.end();
|
16 | });
|