enhancementhelp wantedquestion
仓库指标
- Star
- (2,290 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
Example:
it('toInclude should work for Maps', () => {
const obj = { a: 'a', b: 'b', c: 'c' };
const map = new Map();
Object.keys(obj).forEach(k => {
map.set(k, obj[k]);
});
expect(map).toInclude({ b: 'b' });
});
Error: Expected Map (3) {'a' => 'a', 'b' => 'b', 'c' => 'c'} to include { b: 'b' }