debitoor / chai-subset

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

Map support #74

Open stevenvachon opened 4 years ago

stevenvachon commented 4 years ago

It might be nice if we could do this:

const map = new Map();
map.set('key', {a:1, b:2});

expect(map).to.containSubset({key: {b:2}});

I'm not sure if this would cause confusion, though.