Skip to content

Commit 8bc1c27

Browse files
Making integrated test pass
1 parent d7bff01 commit 8bc1c27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/unit/vuedraggable.integrated.spec.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { mount } from "@vue/test-utils";
1+
import { mount, config } from "@vue/test-utils";
2+
config.global.stubs["transition-group"] = false;
23
import Sortable from "sortablejs";
34
jest.genMockFromModule("sortablejs");
45
jest.mock("sortablejs");
@@ -30,9 +31,7 @@ const expectedDomWithWrapper = wrapper =>
3031
.join("")}</${wrapper}>`;
3132

3233
const expectedDomNoTransition = expectedDomWithWrapper("span");
33-
const expectedDomTransition = `<div>${expectedDomWithWrapper(
34-
"transition-group-stub"
35-
)}</div>`;
34+
const expectedDomTransition = expectedDomWithWrapper("div");
3635

3736
function normalizeHTML(wrapper) {
3837
return wrapper.html().replace(/(\r\n\t|\n|\r\t| )/gm, "");
@@ -50,7 +49,7 @@ describe.each([
5049
"draggable with transition",
5150
DraggableWithTransition,
5251
expectedDomTransition,
53-
"transition-group-stub"
52+
"div"
5453
]
5554
])(
5655
"should update list and DOM with component: %s",

0 commit comments

Comments
 (0)