GT2/GT2-iOS/node_modules/has/test/index.js
2018-02-12 17:26:06 +00:00

10 lines
253 B
JavaScript

global.expect = require('chai').expect;
var has = require('../src');
describe('has', function() {
it('works!', function() {
expect(has({}, 'hasOwnProperty')).to.be.false;
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
});
});