File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -33,23 +33,20 @@ describe.each([
33
33
[ DraggableWithTransition , "draggable with transition" , expectedDomTransition ]
34
34
] )
35
35
(
36
- "should update list with component: %s %s" ,
36
+ "should update list and DOM with component: %s %s" ,
37
37
( component , _ , expectedDom ) => {
38
38
39
- beforeEach ( ( ) => {
40
- jest . resetAllMocks ( ) ;
41
- wrapper = mount ( component , {
42
- attachToDocument : true
43
- } ) ;
44
- vm = wrapper . vm ;
45
- element = wrapper . find ( 'span' ) . element ;
46
- } ) ;
47
-
48
39
describe ( "when handling sort" , ( ) => {
49
- let item ;
50
40
51
41
beforeEach ( async ( ) => {
52
- item = element . children [ 2 ] ;
42
+ jest . resetAllMocks ( ) ;
43
+ wrapper = mount ( component , {
44
+ attachToDocument : true
45
+ } ) ;
46
+ vm = wrapper . vm ;
47
+ element = wrapper . find ( 'span' ) . element ;
48
+
49
+ const item = element . children [ 2 ] ;
53
50
const startEvt = { item } ;
54
51
getEvent ( "onStart" ) ( startEvt ) ;
55
52
await Vue . nextTick ( ) ;
@@ -64,7 +61,7 @@ describe.each([
64
61
from : element
65
62
} ) ;
66
63
await Vue . nextTick ( ) ;
67
- } )
64
+ } ) ;
68
65
69
66
it ( "sends a change event" , async ( ) => {
70
67
const draggableWrapper = wrapper . find ( draggable ) ;
You can’t perform that action at this time.
0 commit comments