File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- import { mount } from "@vue/test-utils" ;
1
+ import { mount , config } from "@vue/test-utils" ;
2
+ config . global . stubs [ "transition-group" ] = false ;
2
3
import Sortable from "sortablejs" ;
3
4
jest . genMockFromModule ( "sortablejs" ) ;
4
5
jest . mock ( "sortablejs" ) ;
@@ -30,9 +31,7 @@ const expectedDomWithWrapper = wrapper =>
30
31
. join ( "" ) } </${ wrapper } >`;
31
32
32
33
const expectedDomNoTransition = expectedDomWithWrapper ( "span" ) ;
33
- const expectedDomTransition = `<div>${ expectedDomWithWrapper (
34
- "transition-group-stub"
35
- ) } </div>`;
34
+ const expectedDomTransition = expectedDomWithWrapper ( "div" ) ;
36
35
37
36
function normalizeHTML ( wrapper ) {
38
37
return wrapper . html ( ) . replace ( / ( \r \n \t | \n | \r \t | ) / gm, "" ) ;
@@ -50,7 +49,7 @@ describe.each([
50
49
"draggable with transition" ,
51
50
DraggableWithTransition ,
52
51
expectedDomTransition ,
53
- "transition-group-stub "
52
+ "div "
54
53
]
55
54
] ) (
56
55
"should update list and DOM with component: %s" ,
You can’t perform that action at this time.
0 commit comments