|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
424 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var values = require('../');
|
|---|
| 4 | var test = require('tape');
|
|---|
| 5 | var runTests = require('./tests');
|
|---|
| 6 |
|
|---|
| 7 | test('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 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.