blob: 43d480b2c2e7638dc5c4a40d5a274da66d050a37 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3var test = require('tape');
4var has = require('../');
5
6test('has', function (t) {
7 t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
8 t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
9 t.end();
10});