You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
253 B
JavaScript
11 lines
253 B
JavaScript
7 years ago
|
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;
|
||
|
});
|
||
|
});
|