Skip to content

Commit

Permalink
fix: clean DOM
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Mar 6, 2023
1 parent a4de664 commit 22fc04a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/vue/__tests__/mathmlNamespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import { render, h, ref, nextTick } from '../src'

describe('MathML support', () => {
afterEach(() => {
document.body.innerHTML = ''
})

test('should mount elements with correct html namespace', () => {
const root = document.createElement('div')
document.body.appendChild(root)
Expand Down
4 changes: 4 additions & 0 deletions packages/vue/__tests__/svgNamespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import { render, h, ref, nextTick } from '../src'

describe('SVG support', () => {
afterEach(() => {
document.body.innerHTML = ''
})

test('should mount elements with correct html namespace', () => {
const root = document.createElement('div')
document.body.appendChild(root)
Expand Down

0 comments on commit 22fc04a

Please sign in to comment.