9
9
Property
10
10
} from '@vue/compiler-core'
11
11
import { transformOn } from '../../src/transforms/vOn'
12
- import { V_ON_MODIFIERS_GUARD , V_ON_KEYS_GUARD } from '../../src/runtimeHelpers'
12
+ import { V_ON_WITH_MODIFIERS , V_ON_WITH_KEYS } from '../../src/runtimeHelpers'
13
13
import { transformElement } from '../../../compiler-core/src/transforms/transformElement'
14
14
import { transformExpression } from '../../../compiler-core/src/transforms/transformExpression'
15
15
import { createObjectMatcher } from '../../../compiler-core/__tests__/testUtils'
@@ -38,7 +38,7 @@ describe('compiler-dom: transform v-on', () => {
38
38
expect ( prop ) . toMatchObject ( {
39
39
type : NodeTypes . JS_PROPERTY ,
40
40
value : {
41
- callee : V_ON_MODIFIERS_GUARD ,
41
+ callee : V_ON_WITH_MODIFIERS ,
42
42
arguments : [ { content : '_ctx.test' } , '["stop","prevent"]' ]
43
43
}
44
44
} )
@@ -53,7 +53,7 @@ describe('compiler-dom: transform v-on', () => {
53
53
type : NodeTypes . JS_PROPERTY ,
54
54
value : createObjectMatcher ( {
55
55
handler : {
56
- callee : V_ON_MODIFIERS_GUARD ,
56
+ callee : V_ON_WITH_MODIFIERS ,
57
57
arguments : [ { content : '_ctx.test' } , '["stop"]' ]
58
58
} ,
59
59
options : createObjectMatcher ( {
@@ -74,10 +74,10 @@ describe('compiler-dom: transform v-on', () => {
74
74
type : NodeTypes . JS_PROPERTY ,
75
75
value : createObjectMatcher ( {
76
76
handler : {
77
- callee : V_ON_KEYS_GUARD ,
77
+ callee : V_ON_WITH_KEYS ,
78
78
arguments : [
79
79
{
80
- callee : V_ON_MODIFIERS_GUARD ,
80
+ callee : V_ON_WITH_MODIFIERS ,
81
81
arguments : [ { content : '_ctx.test' } , '["stop","ctrl"]' ]
82
82
} ,
83
83
'["a"]'
@@ -98,7 +98,7 @@ describe('compiler-dom: transform v-on', () => {
98
98
expect ( prop ) . toMatchObject ( {
99
99
type : NodeTypes . JS_PROPERTY ,
100
100
value : {
101
- callee : V_ON_MODIFIERS_GUARD ,
101
+ callee : V_ON_WITH_MODIFIERS ,
102
102
arguments : [ { content : '_ctx.test' } , '["exact"]' ]
103
103
}
104
104
} )
@@ -111,7 +111,7 @@ describe('compiler-dom: transform v-on', () => {
111
111
expect ( prop ) . toMatchObject ( {
112
112
type : NodeTypes . JS_PROPERTY ,
113
113
value : {
114
- callee : V_ON_KEYS_GUARD ,
114
+ callee : V_ON_WITH_KEYS ,
115
115
arguments : [ { content : '_ctx.test' } , '["enter"]' ]
116
116
}
117
117
} )
0 commit comments