API: mountbughelp wanted
倉庫指標
- Star
- (19,979 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
Basically, this fails:
it('should be true', () => {
const SomeComponent = () => (<div></div>);
expect(shallow(<SomeComponent />).is(SomeComponent)).to.be.true;
});
while this works:
// require('jsdom')...
it('should be true', () => {
const SomeComponent = () => (<div></div>);
expect(mount(<SomeComponent />).is(SomeComponent)).to.be.true;
});
Am I wrong to assume the first one should work too?