Urara-Blog/node_modules/.pnpm-store/v3/files/15/205d5f0e82004347b033c4728d29ba9f02b498b625daaa623c6bb18f9339aba443c5542013cdc37a1255b1b04baeb2744cc16c0abe611cb1a44a923a86dfa0
2022-08-14 01:14:53 +08:00

10 lines
331 B
Text

'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();
});