Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Last active December 5, 2018 08:28
Show Gist options
  • Save Dinamiko/6c021afac03b93ff9d7e2559d11b7410 to your computer and use it in GitHub Desktop.
Save Dinamiko/6c021afac03b93ff9d7e2559d11b7410 to your computer and use it in GitHub Desktop.
class App extends Component {
render() {
return (
<div>
<Sum/>
<Multiply/>
</div>
);
}
}
test('display Sum and Multiply components', () => {
const component = mount(<App/>);
expect(component.find(Sum).length).toEqual(1);
expect(component.find(Multiply).length).toEqual(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment