debitoor / chai-subset

"containSubset" object properties matcher for Chai
http://chaijs.com/plugins/chai-subset/
MIT License
82 stars 20 forks source link

TypeError: Cannot read property 'flag' of undefined #7

Closed sonicoder86 closed 9 years ago

sonicoder86 commented 9 years ago

I get this error after upgrading to version 1.0.0. The utils parameter is empty...what should it be? I find no sign of it in the documentation.

module.exports = function(chai, utils) {
eagleeye commented 9 years ago

how do you use this plugin? like this? chai.use(chaiSubset);? we have general test, that says that this plugin works)

sonicoder86 commented 9 years ago

Found it out after an hour it was because i used it like:

require('chai-subset')(chai);