Last active
July 21, 2018 21:40
-
-
Save FabricioFFC/af52ee6796f65f4ffd412075d763e89b 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
import React from 'react'; | |
import renderer from 'react-test-renderer'; | |
import { ActivityIndicator } from 'react-native'; | |
import TeamsList from './src/components/TeamsList'; | |
import App from './App'; | |
it('renders the loading component when the app is first rendered', () => { | |
const rendered = renderer.create(<App />); | |
const TeamsListRendered = rendered.root.findByType(TeamsList); | |
const ActivityIndicatorRendered = TeamsListRendered.findByType(ActivityIndicator); | |
expect(ActivityIndicatorRendered).toBeTruthy(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment