Skip to content

Commit

Permalink
test: adjust mount import source
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Nov 8, 2020
1 parent 56fc7f7 commit a7df6cf
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/action-bar/test/index.spec.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/address-list/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import AddressList from '..';

const list = [
Expand Down
2 changes: 1 addition & 1 deletion src/badge/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/card/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Card from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('click event', () => {
const onClick = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/cell/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/col/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/contact-card/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/contact-list/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ContactList from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

const contactInfo = {
name: 'test',
Expand Down
2 changes: 1 addition & 1 deletion src/datetime-picker/test/datetime-picker.legacy.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/empty/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Empty from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('image slot', () => {
const wrapper = mount(Empty, {
Expand Down
2 changes: 1 addition & 1 deletion src/grid/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('click grid item', () => {
const onClick = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/icon/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand Down
2 changes: 1 addition & 1 deletion src/image/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import VanImage from '..';

test('click event', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/loading/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import Loading from '..';

test('size prop', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/overlay/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import Overlay from '..';

test('z-index prop', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pagination/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import Paginaion from '..';

test('render prev-text & next-text slot', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/password-input/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import PasswordInput from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('focus event', () => {
const focus = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/radio/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('radio-group change', () => {
const wrapper = mount({
Expand Down
2 changes: 1 addition & 1 deletion src/search/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Search from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('input event', () => {
const onInput = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/sidebar/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import Sidebar from '..';

test('click event & change event', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/skeleton/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';
import Skeleton from '..';

test('row-width array', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/steps/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('icon slot', () => {
const wrapper = mount({
Expand Down
2 changes: 1 addition & 1 deletion src/submit-bar/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import SubmitBar from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('submit event', () => {
const submit = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/switch/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Switch from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('emit event', () => {
const input = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/tag/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Tag from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('click event', () => {
const click = jest.fn();
Expand Down
2 changes: 1 addition & 1 deletion src/tree-select/test/index.legacy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import TreeSelect from '..';
import { mount } from '../../../test';
import { mount } from '@vue/test-utils';

test('empty list', () => {
expect(mount(TreeSelect)).toMatchSnapshot();
Expand Down

0 comments on commit a7df6cf

Please sign in to comment.