Skip to content

Instantly share code, notes, and snippets.

@JakeDawkins
Created June 13, 2018 16:18
Show Gist options
  • Select an option

  • Save JakeDawkins/1913bac39c32aed46f944869b0dd03ec to your computer and use it in GitHub Desktop.

Select an option

Save JakeDawkins/1913bac39c32aed46f944869b0dd03ec to your computer and use it in GitHub Desktop.
it('should render loading state initially', () => {
const component = renderer.create(
<MockedProvider mocks={[]}>
<Dog />
</MockedProvider>,
);
const tree = component.toJSON();
expect(tree.children).toContain('Loading...');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment