UNPKG

397 BJavaScriptView Raw
1'use strict';
2
3var entries = require('../');
4var test = require('tape');
5
6test('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});