CS212-Projects-express/node_modules/has/test/index.js
cdez 60087976ca Switched over to ExpressJS Hosting
++ CS212-Projects file copy
++ public folder
++ node stuff
2023-04-10 15:14:27 -07:00

10 lines
331 B
JavaScript

'use strict';
var test = require('tape');
var has = require('../');
test('has', function (t) {
t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
t.end();
});