Created
July 29, 2018 19:04
-
-
Save adrian-afergon/a9b98fafb0695206398ef4682677272c to your computer and use it in GitHub Desktop.
Default test for test App.js in React Native
This file contains hidden or 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
import React from 'react'; | |
import App from './App'; | |
import renderer from 'react-test-renderer'; | |
it('renders without crashing', () => { | |
const rendered = renderer.create(<App />).toJSON(); | |
expect(rendered).toBeTruthy(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment