CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
implementation.js20 linesDownload Raw Back to test
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 first arg/receiver', { skip: !hasStrictMode }, function (st) {11		st['throws'](function () { implementation(undefined); }, TypeError, 'undefined is not an object');12		st['throws'](function () { implementation(null); }, TypeError, 'null is not an object');13		st.end();14	});15 16	runTests(callBind(implementation, Object), t);17 18	t.end();19});20 
basant307/AI_Governance_Project · CoolFace