@tarojs/taro-rn 3.4.3 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +0,0 @@
1
- // eslint-disable-next-line
2
- import React from 'react'
3
- import { mount } from 'enzyme'
4
- import toJson from 'enzyme-to-json'
5
- import { scanCode, scannerView as ScannerView } from '../lib/scanCode'
6
-
7
- describe('scanCode', () => {
8
- it('should render scanCode success', async () => {
9
- await scanCode()
10
- const wrapper = mount(<ScannerView />)
11
- expect(toJson(wrapper)).toMatchSnapshot()
12
- })
13
- // it('should render scanCode emit event success', async() => {
14
- // const success = jest.fn()
15
- // const fail = jest.fn()
16
- // const complete = jest.fn()
17
- // const ScannerView = await scanCode()
18
- // const wrapper = mount(<ScannerView
19
- // style={{ color: 'red' }}
20
- // onShow={onShow}
21
- // onClose={onClose}
22
- // ><Text>Test</Text></ScannerView>)
23
- // })
24
- })