@@ -13,7 +13,8 @@ import {
13
13
inject ,
14
14
watch ,
15
15
toRefs ,
16
- SetupContext
16
+ SetupContext ,
17
+ isProxy
17
18
} from '@vue/runtime-test'
18
19
import { render as domRender , nextTick } from 'vue'
19
20
@@ -105,10 +106,12 @@ describe('component props', () => {
105
106
render ( h ( Comp , { foo : 2 , bar : 3 , baz : 4 } ) , root )
106
107
expect ( props ) . toEqual ( { foo : 2 } )
107
108
expect ( attrs ) . toEqual ( { bar : 3 , baz : 4 } )
109
+ expect ( isProxy ( props ) ) . toBe ( false )
108
110
109
111
render ( h ( Comp , { qux : 5 } ) , root )
110
112
expect ( props ) . toEqual ( { } )
111
113
expect ( attrs ) . toEqual ( { qux : 5 } )
114
+ expect ( isProxy ( props ) ) . toBe ( false )
112
115
} )
113
116
114
117
test ( 'functional without declaration' , ( ) => {
@@ -124,11 +127,13 @@ describe('component props', () => {
124
127
expect ( props ) . toEqual ( { foo : 1 } )
125
128
expect ( attrs ) . toEqual ( { foo : 1 } )
126
129
expect ( props ) . toBe ( attrs )
130
+ expect ( isProxy ( props ) ) . toBe ( false )
127
131
128
132
render ( h ( Comp , { bar : 2 } ) , root )
129
133
expect ( props ) . toEqual ( { bar : 2 } )
130
134
expect ( attrs ) . toEqual ( { bar : 2 } )
131
135
expect ( props ) . toBe ( attrs )
136
+ expect ( isProxy ( props ) ) . toBe ( false )
132
137
} )
133
138
134
139
test ( 'boolean casting' , ( ) => {
0 commit comments