• File: index.js
  • Full Path: /var/www/nodejs/Notifications_Imali_API/node_modules/has/test/index.js
  • Date Modified: 10/26/1985 3:15 PM
  • File size: 331 bytes
  • MIME-type: text/plain
  • Charset: utf-8
'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();
});