Skip to content

Commit 320d6d5

Browse files
sto3pslyyx990803
authored andcommitted
fix: update MathML test
1 parent a046aa7 commit 320d6d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/vue/__tests__/mathmlNamespace.spec.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// - runtime-core/src/renderer.ts
66
// - compiler-core/src/transforms/transformElement.ts
77

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

1011
describe('MathML support', () => {
@@ -69,7 +70,10 @@ describe('MathML support', () => {
6970
const f2 = document.querySelector('#f2')!
7071
expect(f1.getAttribute('class')).toBe('foo')
7172
expect(f2.className).toBe('foo')
72-
;(f2 as any)._vtc = ['baz']
73+
74+
// set a transition class on the <div> - which is only respected on non-svg
75+
// patches
76+
;(f2 as any)[vtcKey] = ['baz']
7377
cls.value = 'bar'
7478
await nextTick()
7579
expect(f1.getAttribute('class')).toBe('bar')

0 commit comments

Comments
 (0)