Skip to content

Commit

Permalink
added base tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas committed Mar 20, 2017
1 parent 4e61b57 commit 3ccb922
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions example/Anyline/__tests__/index.android.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Created by jonesBoi on 20.03.17.
*/
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 />
);
});
16 changes: 16 additions & 0 deletions example/Anyline/__tests__/index.ios.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* Created by jonesBoi on 20.03.17.
*/

import 'react-native';
import React from 'react';
import Index from '../index.ios.js';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';

it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});

0 comments on commit 3ccb922

Please sign in to comment.