File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- import { Text , type VNode } from 'vue'
1
+ import { type VNode } from 'vue'
2
2
import type { MDCElement , MDCNode , MDCText } from '../types'
3
3
4
4
/**
@@ -32,7 +32,7 @@ export function isTag (vnode: VNode | MDCNode, tag: string | symbol): boolean {
32
32
* Check if virtual node is text node
33
33
*/
34
34
export function isText ( vnode : VNode | MDCNode ) : boolean {
35
- return isTag ( vnode , 'text' ) || isTag ( vnode , Text )
35
+ return isTag ( vnode , 'text' ) || isTag ( vnode , Symbol . for ( 'v-txt' ) )
36
36
}
37
37
38
38
/**
Original file line number Diff line number Diff line change
1
+ import { expect , it } from 'vitest'
2
+ import { Text } from 'vue'
3
+
4
+ it ( 'Vue.Text === Symbol.for(\'v-txt\')' , async ( ) => {
5
+ expect ( Text === Symbol . for ( 'v-txt' ) ) . toBe ( true )
6
+ } )
You can’t perform that action at this time.
0 commit comments