Skip to content

Commit

Permalink
fix: update MathML test
Browse files Browse the repository at this point in the history
  • Loading branch information
sto3psl authored and yyx990803 committed Dec 8, 2023
1 parent a046aa7 commit 320d6d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/vue/__tests__/mathmlNamespace.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// - runtime-core/src/renderer.ts
// - compiler-core/src/transforms/transformElement.ts

import { vtcKey } from '../../runtime-dom/src/components/Transition'
import { render, h, ref, nextTick } from '../src'

describe('MathML support', () => {
Expand Down Expand Up @@ -69,7 +70,10 @@ describe('MathML support', () => {
const f2 = document.querySelector('#f2')!
expect(f1.getAttribute('class')).toBe('foo')
expect(f2.className).toBe('foo')
;(f2 as any)._vtc = ['baz']

// set a transition class on the <div> - which is only respected on non-svg
// patches
;(f2 as any)[vtcKey] = ['baz']
cls.value = 'bar'
await nextTick()
expect(f1.getAttribute('class')).toBe('bar')
Expand Down

0 comments on commit 320d6d5

Please sign in to comment.