test: use module alias instead of relative path

This commit is contained in:
unix
2020-04-18 13:24:11 +08:00
parent 0f1f3326e1
commit 638ec03903
13 changed files with 21 additions and 16 deletions

View File

@@ -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', () => {

View File

@@ -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' },
]