From a7df6cfebb45a7b2b425e63c55daa66fe3767a89 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sun, 8 Nov 2020 20:33:20 +0800 Subject: [PATCH] test: adjust mount import source --- src/action-bar/test/index.spec.js | 2 +- src/address-list/test/index.legacy.js | 2 +- src/badge/test/index.legacy.js | 2 +- src/card/test/index.legacy.js | 2 +- src/cell/test/index.legacy.js | 2 +- src/col/test/index.legacy.js | 2 +- src/contact-card/test/index.legacy.js | 2 +- src/contact-list/test/index.legacy.js | 2 +- src/datetime-picker/test/datetime-picker.legacy.js | 2 +- src/empty/test/index.legacy.js | 2 +- src/grid/test/index.legacy.js | 2 +- src/icon/test/index.legacy.js | 2 +- src/image/test/index.legacy.js | 2 +- src/loading/test/index.legacy.js | 2 +- src/overlay/test/index.legacy.js | 2 +- src/pagination/test/index.legacy.js | 2 +- src/password-input/test/index.legacy.js | 2 +- src/radio/test/index.legacy.js | 2 +- src/search/test/index.legacy.js | 2 +- src/sidebar/test/index.legacy.js | 2 +- src/skeleton/test/index.legacy.js | 2 +- src/steps/test/index.legacy.js | 2 +- src/submit-bar/test/index.legacy.js | 2 +- src/switch/test/index.legacy.js | 2 +- src/tag/test/index.legacy.js | 2 +- src/tree-select/test/index.legacy.js | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/action-bar/test/index.spec.js b/src/action-bar/test/index.spec.js index f955f4c66..d64a5f25d 100644 --- a/src/action-bar/test/index.spec.js +++ b/src/action-bar/test/index.spec.js @@ -1,5 +1,5 @@ import ActionBar from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('should allow to disable safe-area-inset-bottom prop', () => { const wrapper = mount(ActionBar, { diff --git a/src/address-list/test/index.legacy.js b/src/address-list/test/index.legacy.js index 8a37fb08f..b749e4d54 100644 --- a/src/address-list/test/index.legacy.js +++ b/src/address-list/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import AddressList from '..'; const list = [ diff --git a/src/badge/test/index.legacy.js b/src/badge/test/index.legacy.js index b0b7b6f79..c40e80da3 100644 --- a/src/badge/test/index.legacy.js +++ b/src/badge/test/index.legacy.js @@ -1,5 +1,5 @@ import Badge from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('should not render when badge is empty string', () => { const wrapper = mount(Badge, { diff --git a/src/card/test/index.legacy.js b/src/card/test/index.legacy.js index 4aaff672b..7fd5410e0 100644 --- a/src/card/test/index.legacy.js +++ b/src/card/test/index.legacy.js @@ -1,5 +1,5 @@ import Card from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('click event', () => { const onClick = jest.fn(); diff --git a/src/cell/test/index.legacy.js b/src/cell/test/index.legacy.js index 77b6e7449..2f639b3ce 100644 --- a/src/cell/test/index.legacy.js +++ b/src/cell/test/index.legacy.js @@ -1,6 +1,6 @@ import Cell from '..'; import CellGroup from '../../cell-group'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('click event', () => { const click = jest.fn(); diff --git a/src/col/test/index.legacy.js b/src/col/test/index.legacy.js index 43264b042..e449ce633 100644 --- a/src/col/test/index.legacy.js +++ b/src/col/test/index.legacy.js @@ -1,6 +1,6 @@ import Col from '..'; import Row from '../../row'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('Col click event', () => { const wrapper = mount(Col); diff --git a/src/contact-card/test/index.legacy.js b/src/contact-card/test/index.legacy.js index b21628e7f..76ad44a38 100644 --- a/src/contact-card/test/index.legacy.js +++ b/src/contact-card/test/index.legacy.js @@ -1,5 +1,5 @@ import ContactCard from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('should emit click event after clicking the ContactCard', () => { const click = jest.fn(); diff --git a/src/contact-list/test/index.legacy.js b/src/contact-list/test/index.legacy.js index 27558d491..63b1c3268 100644 --- a/src/contact-list/test/index.legacy.js +++ b/src/contact-list/test/index.legacy.js @@ -1,5 +1,5 @@ import ContactList from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; const contactInfo = { name: 'test', diff --git a/src/datetime-picker/test/datetime-picker.legacy.js b/src/datetime-picker/test/datetime-picker.legacy.js index 6898c822f..d23770d31 100644 --- a/src/datetime-picker/test/datetime-picker.legacy.js +++ b/src/datetime-picker/test/datetime-picker.legacy.js @@ -1,5 +1,5 @@ import DatetimePicker from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('confirm & cancel event', () => { const onConfirm = jest.fn(); diff --git a/src/empty/test/index.legacy.js b/src/empty/test/index.legacy.js index 692a1c69a..ea4756181 100644 --- a/src/empty/test/index.legacy.js +++ b/src/empty/test/index.legacy.js @@ -1,5 +1,5 @@ import Empty from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('image slot', () => { const wrapper = mount(Empty, { diff --git a/src/grid/test/index.legacy.js b/src/grid/test/index.legacy.js index 68775845c..79eb1b7d2 100644 --- a/src/grid/test/index.legacy.js +++ b/src/grid/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('click grid item', () => { const onClick = jest.fn(); diff --git a/src/icon/test/index.legacy.js b/src/icon/test/index.legacy.js index d49d1e275..3e7bb582d 100644 --- a/src/icon/test/index.legacy.js +++ b/src/icon/test/index.legacy.js @@ -1,5 +1,5 @@ import Icon from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('render icon with builtin icon name', () => { const wrapper = mount(Icon, { diff --git a/src/image/test/index.legacy.js b/src/image/test/index.legacy.js index 163b4bd0f..f09888e94 100644 --- a/src/image/test/index.legacy.js +++ b/src/image/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import VanImage from '..'; test('click event', () => { diff --git a/src/loading/test/index.legacy.js b/src/loading/test/index.legacy.js index 370061ba2..4db526d66 100644 --- a/src/loading/test/index.legacy.js +++ b/src/loading/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import Loading from '..'; test('size prop', () => { diff --git a/src/overlay/test/index.legacy.js b/src/overlay/test/index.legacy.js index 23946dda3..f1d498c05 100644 --- a/src/overlay/test/index.legacy.js +++ b/src/overlay/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import Overlay from '..'; test('z-index prop', () => { diff --git a/src/pagination/test/index.legacy.js b/src/pagination/test/index.legacy.js index 690263c55..5b587318a 100644 --- a/src/pagination/test/index.legacy.js +++ b/src/pagination/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import Paginaion from '..'; test('render prev-text & next-text slot', () => { diff --git a/src/password-input/test/index.legacy.js b/src/password-input/test/index.legacy.js index 65e3d635e..2a10ed81c 100644 --- a/src/password-input/test/index.legacy.js +++ b/src/password-input/test/index.legacy.js @@ -1,5 +1,5 @@ import PasswordInput from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('focus event', () => { const focus = jest.fn(); diff --git a/src/radio/test/index.legacy.js b/src/radio/test/index.legacy.js index a84a83e50..d3baee1d3 100644 --- a/src/radio/test/index.legacy.js +++ b/src/radio/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('radio-group change', () => { const wrapper = mount({ diff --git a/src/search/test/index.legacy.js b/src/search/test/index.legacy.js index f709dd2fc..78b0e7b8d 100644 --- a/src/search/test/index.legacy.js +++ b/src/search/test/index.legacy.js @@ -1,5 +1,5 @@ import Search from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('input event', () => { const onInput = jest.fn(); diff --git a/src/sidebar/test/index.legacy.js b/src/sidebar/test/index.legacy.js index 977c50c08..2672397d3 100644 --- a/src/sidebar/test/index.legacy.js +++ b/src/sidebar/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import Sidebar from '..'; test('click event & change event', () => { diff --git a/src/skeleton/test/index.legacy.js b/src/skeleton/test/index.legacy.js index 9a8f31967..13fbe6b19 100644 --- a/src/skeleton/test/index.legacy.js +++ b/src/skeleton/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; import Skeleton from '..'; test('row-width array', () => { diff --git a/src/steps/test/index.legacy.js b/src/steps/test/index.legacy.js index 8a8b818ab..eecbd7875 100644 --- a/src/steps/test/index.legacy.js +++ b/src/steps/test/index.legacy.js @@ -1,4 +1,4 @@ -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('icon slot', () => { const wrapper = mount({ diff --git a/src/submit-bar/test/index.legacy.js b/src/submit-bar/test/index.legacy.js index 418993717..73cdd5693 100644 --- a/src/submit-bar/test/index.legacy.js +++ b/src/submit-bar/test/index.legacy.js @@ -1,5 +1,5 @@ import SubmitBar from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('submit event', () => { const submit = jest.fn(); diff --git a/src/switch/test/index.legacy.js b/src/switch/test/index.legacy.js index 04076f8af..888a30c34 100644 --- a/src/switch/test/index.legacy.js +++ b/src/switch/test/index.legacy.js @@ -1,5 +1,5 @@ import Switch from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('emit event', () => { const input = jest.fn(); diff --git a/src/tag/test/index.legacy.js b/src/tag/test/index.legacy.js index 864947a4f..33c9448ae 100644 --- a/src/tag/test/index.legacy.js +++ b/src/tag/test/index.legacy.js @@ -1,5 +1,5 @@ import Tag from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('click event', () => { const click = jest.fn(); diff --git a/src/tree-select/test/index.legacy.js b/src/tree-select/test/index.legacy.js index e97eda25d..cc16d2958 100644 --- a/src/tree-select/test/index.legacy.js +++ b/src/tree-select/test/index.legacy.js @@ -1,5 +1,5 @@ import TreeSelect from '..'; -import { mount } from '../../../test'; +import { mount } from '@vue/test-utils'; test('empty list', () => { expect(mount(TreeSelect)).toMatchSnapshot();