瀏覽代碼

Use single test

Mathieu Acthernoene 7 年之前
父節點
當前提交
6ab7f90b3d
共有 2 個文件被更改,包括 1 次插入11 次删除
  1. 0
    10
      example/__tests__/index.android.js
  2. 1
    1
      example/__tests__/index.js

+ 0
- 10
example/__tests__/index.android.js 查看文件

@@ -1,10 +0,0 @@
1
-import 'react-native'
2
-import React from 'react'
3
-import Index from '../index.android.js'
4
-
5
-// Note: test renderer must be required after react-native.
6
-import renderer from 'react-test-renderer'
7
-
8
-it('renders correctly', () => {
9
-  const tree = renderer.create(<Index />)
10
-})

example/__tests__/index.ios.js → example/__tests__/index.js 查看文件

@@ -1,6 +1,6 @@
1 1
 import 'react-native'
2 2
 import React from 'react'
3
-import Index from '../index.ios.js'
3
+import Index from '../index.js'
4 4
 
5 5
 // Note: test renderer must be required after react-native.
6 6
 import renderer from 'react-test-renderer'