mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 04:35:32 +08:00
test: use module alias instead of relative path
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { mount } from 'enzyme'
|
||||
import { AutoComplete } from '../../index'
|
||||
import { nativeEvent } from '../../../tests/utils'
|
||||
import { AutoComplete } from 'components'
|
||||
import { nativeEvent } from 'tests/utils'
|
||||
|
||||
describe('AutoComplete', () => {
|
||||
it('should render correctly', () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from 'react'
|
||||
import { mount, render } from 'enzyme'
|
||||
import { AutoComplete } from '../../index'
|
||||
import { nativeEvent } from '../../../tests/utils'
|
||||
import { AutoComplete } from 'components'
|
||||
import { nativeEvent } from 'tests/utils'
|
||||
const mockOptions = [
|
||||
{ label: 'London', value: 'london' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user