test: update transfer test

pull/1845/head
tangjinzhou 2020-02-28 16:07:10 +08:00
parent 8f732fc421
commit 292e2bc6fe
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { renderToString } from '@vue/server-test-utils';
import Transfer from '..'; import Transfer from '..';
import Vue from 'vue'; import Vue from 'vue';
import { asyncExpect } from '@/tests/utils'; import { asyncExpect } from '@/tests/utils';
import mountTest from '../../../tests/shared/mountTest';
const listCommonProps = { const listCommonProps = {
dataSource: [ dataSource: [
@ -87,6 +88,7 @@ const searchTransferProps = {
}; };
describe('Transfer', () => { describe('Transfer', () => {
mountTest(Transfer);
it('should render correctly', () => { it('should render correctly', () => {
const props = { const props = {
propsData: listCommonProps, propsData: listCommonProps,