chore: remove unused registration in test cases

This commit is contained in:
陈嘉涵 2020-01-14 17:48:40 +08:00
parent a20a81ac06
commit 26f2884fbb
13 changed files with 0 additions and 62 deletions

View File

@ -1,11 +1,6 @@
import Vue from 'vue';
import Checkbox from '..';
import CheckboxGroup from '../../checkbox-group';
import { mount, later } from '../../../test';
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
test('switch checkbox', async () => {
const wrapper = mount(Checkbox);

View File

@ -1,11 +1,7 @@
import Vue from 'vue';
import Collapse from '..';
import CollapseItem from '../../collapse-item';
import { later, mount } from '../../../test';
Vue.use(Collapse);
Vue.use(CollapseItem);
const component = {
template: `
<van-collapse v-model="active" :accordion="accordion" :border="border">

View File

@ -1,9 +1,6 @@
import Vue from 'vue';
import CountDown from '..';
import { mount, later } from '../../../test';
Vue.use(CountDown);
test('macro task finish event', async () => {
const wrapper = mount(CountDown, {
propsData: {

View File

@ -1,10 +1,4 @@
import { mount, later } from '../../../test';
import Vue from 'vue';
import DropdownMenu from '..';
import DropdownItem from '../../dropdown-item';
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
function renderWrapper(options = {}) {
return mount({

View File

@ -1,11 +1,5 @@
import Vue from 'vue';
import Grid from '..';
import GridItem from '../../grid-item';
import { mount } from '../../../test';
Vue.use(Grid);
Vue.use(GridItem);
test('click grid item', () => {
const onClick = jest.fn();
const wrapper = mount({

View File

@ -1,11 +1,5 @@
import Vue from 'vue';
import IndexBar from '..';
import IndexAnchor from '../../index-anchor';
import { mount, trigger, triggerDrag } from '../../../test';
Vue.use(IndexBar);
Vue.use(IndexAnchor);
function mockScrollIntoView() {
const fn = jest.fn();
Element.prototype.scrollIntoView = fn;

View File

@ -1,11 +1,5 @@
import Vue from 'vue';
import Radio from '..';
import RadioGroup from '../../radio-group';
import { mount } from '../../../test';
Vue.use(Radio);
Vue.use(RadioGroup);
test('radio-group change', () => {
const wrapper = mount({
template: `

View File

@ -1,10 +1,5 @@
import { mount } from '../../../test';
import Vue from 'vue';
import Sidebar from '..';
import SidebarItem from '../../sidebar-item';
Vue.use(Sidebar);
Vue.use(SidebarItem);
test('click event & change event', () => {
const onClick = jest.fn();

View File

@ -1,8 +1,4 @@
import { mount, mockScrollTop } from '../../../test';
import Vue from 'vue';
import Sticky from '..';
Vue.use(Sticky);
test('sticky to top', () => {
const wrapper = mount({

View File

@ -1,11 +1,5 @@
import Vue from 'vue';
import Swipe from '..';
import SwipeItem from '../../swipe-item';
import { mount, triggerDrag, later } from '../../../test';
Vue.use(Swipe);
Vue.use(SwipeItem);
const Component = {
template: `
<van-swipe ref="swipe" v-bind="$props">

View File

@ -1,11 +1,6 @@
import Vue from 'vue';
import Tab from '..';
import Tabs from '../../tabs';
import { mount, later, triggerDrag, mockScrollTop } from '../../../test';
Vue.use(Tab);
Vue.use(Tabs);
function createWrapper(options = {}) {
return mount({
template: `

View File

@ -2,10 +2,7 @@ import VueRouter from 'vue-router';
import { mount, later } from '../../../test';
import Vue from 'vue';
import Tabbar from '..';
import TabbarItem from '../../tabbar-item';
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(VueRouter);
test('route mode', async () => {

View File

@ -1,9 +1,6 @@
import Vue from 'vue';
import TreeSelect from '..';
import { mount } from '../../../test';
Vue.use(TreeSelect);
test('empty list', () => {
expect(mount(TreeSelect)).toMatchSnapshot();
});