Skip to content

Instantly share code, notes, and snippets.

@rj76
Created March 7, 2017 09:25
Show Gist options
  • Save rj76/ce069caf6c60735dcb5f15cf3a346300 to your computer and use it in GitHub Desktop.
Save rj76/ce069caf6c60735dcb5f15cf3a346300 to your computer and use it in GitHub Desktop.
basic test
import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment