| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [diff] [blame^] | 1 | 'use strict'; |
| 2 | |||||
| 3 | var test = require('tape'); | ||||
| 4 | var has = require('../'); | ||||
| 5 | |||||
| 6 | test('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 | }); | ||||