You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
based on the conversation in #116 I think adding a .equals(<Foo />); method would be a reasonable addition to the API.
constMyComponent=({ type })=>(<Pagetype={type}><Header>
My Page Title
</Header><Body>
My Page Content
</Body></Page>);describe('test JSX output',()=>{it('should be done',()=>{constcomponent=shallow(<MyComponenttype="custom"/>);expect(component.equals(<Pagetype="custom"><Header>
My Page Title
</Header><Body>
My Page Content
</Body></Page>)).to.equal(true);});});
NOTE: looking at .contains() should make this pretty straight-forward to implement...
The text was updated successfully, but these errors were encountered:
based on the conversation in #116 I think adding a
.equals(<Foo />);
method would be a reasonable addition to the API.NOTE: looking at
.contains()
should make this pretty straight-forward to implement...The text was updated successfully, but these errors were encountered: