source: trip-planner-front/node_modules/has/test/index.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 331 bytes
Line 
1'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});
Note: See TracBrowser for help on using the repository browser.