index.js 253 B

12345678910
  1. global.expect = require('chai').expect;
  2. var has = require('../src');
  3. describe('has', function() {
  4. it('works!', function() {
  5. expect(has({}, 'hasOwnProperty')).to.be.false;
  6. expect(has(Object.prototype, 'hasOwnProperty')).to.be.true;
  7. });
  8. });