chore: adjust path of test utils (#4997)

This commit is contained in:
neverland
2019-11-13 16:46:01 +08:00
committed by GitHub
parent 4cd132c0ee
commit aee1091c5c
125 changed files with 231 additions and 220 deletions
+5 -5
View File
@@ -1,17 +1,17 @@
import Demo from '../demo';
import demoTest from '../../../test/demo-test';
import { mockGetBoundingClientRect } from '../../../test/utils';
import { snapshotDemo } from '../../../test/demo';
import { mockGetBoundingClientRect } from '../../../test';
let restore;
demoTest(Demo, {
hookBeforeTest: () => {
snapshotDemo(Demo, {
beforeTest: () => {
restore = mockGetBoundingClientRect({
width: 100,
height: 100
});
},
hookAfterTest: () => {
afterTest: () => {
restore();
}
});
+1 -1
View File
@@ -1,6 +1,6 @@
import Swipe from '..';
import SwipeItem from '../../swipe-item';
import { mount, triggerDrag, later } from '../../../test/utils';
import { mount, triggerDrag, later } from '../../../test';
const Component = {
template: `