odin-default-js-exercises/node_modules/has/test/index.js

11 lines
253 B
JavaScript
Raw Normal View History

2017-12-15 18:56:14 +00:00
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;
});
});