source: imaps-frontend/node_modules/array-includes/test/index.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 442 bytes
RevLine 
[d565449]1'use strict';
2
3var includes = 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 () { includes(undefined, 'a'); }, TypeError, 'undefined is not an object');
10 st['throws'](function () { includes(null, 'a'); }, TypeError, 'null is not an object');
11 st.end();
12 });
13
14 runTests(includes, t);
15
16 t.end();
17});
Note: See TracBrowser for help on using the repository browser.