Skip to content

Commit 22fc04a

Browse files
committed
fix: clean DOM
1 parent a4de664 commit 22fc04a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packages/vue/__tests__/mathmlNamespace.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
import { render, h, ref, nextTick } from '../src'
99

1010
describe('MathML support', () => {
11+
afterEach(() => {
12+
document.body.innerHTML = ''
13+
})
14+
1115
test('should mount elements with correct html namespace', () => {
1216
const root = document.createElement('div')
1317
document.body.appendChild(root)

packages/vue/__tests__/svgNamespace.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
import { render, h, ref, nextTick } from '../src'
99

1010
describe('SVG support', () => {
11+
afterEach(() => {
12+
document.body.innerHTML = ''
13+
})
14+
1115
test('should mount elements with correct html namespace', () => {
1216
const root = document.createElement('div')
1317
document.body.appendChild(root)

0 commit comments

Comments
 (0)