Last active
December 5, 2018 08:28
-
-
Save Dinamiko/6c021afac03b93ff9d7e2559d11b7410 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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