Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80529 views
1
global.expect = require('chai').expect;
2
var has = require('../src');
3
4
5
describe('has', function() {
6
it('works!', function() {
7
expect(has({}, 'hasOwnProperty')).to.be.false;
8
expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
9
});
10
});
11
12