source: imaps-frontend/node_modules/object.fromentries/test/implementation.js@ d565449

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

Update repo after prototype presentation

  • Property mode set to 100644
File size: 645 bytes
Line 
1'use strict';
2
3var implementation = require('../implementation');
4var callBind = require('call-bind');
5var test = require('tape');
6var hasStrictMode = require('has-strict-mode')();
7var runTests = require('./tests');
8
9test('as a function', function (t) {
10 t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
11 /* eslint no-useless-call: 0 */
12 st['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object');
13 st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object');
14 st.end();
15 });
16
17 runTests(callBind(implementation, Object), t);
18
19 t.end();
20});
Note: See TracBrowser for help on using the repository browser.