Sinon-jQuery
Sinon matcher for matching jQuery collections.
npm install --save-dev sinon-jquery
Add to your test harness:
var $ = sinon = sinonjQuery = ; sinonjQuery;
We recommend you use this with Sinon-Chai (npm install --save-dev sinon-chai
)
var chai = sinonChai = ; chai;
Then use as a matcher, eg. with Mocha+Chai+Sinon-Chai+Sinon-jQuery:
;