blob: 2c1bba5efc0ae23ed8f24d06c25ee43e8f49202e [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var values = 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 () { values(undefined); }, TypeError, 'undefined is not an object');
10 st['throws'](function () { values(null); }, TypeError, 'null is not an object');
11 st.end();
12 });
13
14 runTests(values, t);
15
16 t.end();
17});