1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-09-15 23:22:53 +00:00
Files
musix-oss/node_modules/has/test/index.js
MatteZ02 30022c7634 Modules
2020-03-03 22:30:50 +02:00

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