mirror of https://github.com/vuejs/core.git
test: add case
This commit is contained in:
parent
ad29ea5ba1
commit
4f6ee56cd8
|
@ -11,6 +11,7 @@ import {
|
|||
defineComponent,
|
||||
h,
|
||||
reactive,
|
||||
readonly,
|
||||
ref,
|
||||
withKeys,
|
||||
withModifiers,
|
||||
|
@ -190,6 +191,7 @@ describe('with object props', () => {
|
|||
f: reactive({
|
||||
g: ref('hello' as GT),
|
||||
}),
|
||||
m: readonly(ref(1))
|
||||
}
|
||||
},
|
||||
provide() {
|
||||
|
@ -259,6 +261,9 @@ describe('with object props', () => {
|
|||
// setup context properties should be mutable
|
||||
this.c = 2
|
||||
|
||||
// @ts-expect-error setup context readonly properties should not be mutable
|
||||
this.m = 2
|
||||
|
||||
return null
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue