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,
|
defineComponent,
|
||||||
h,
|
h,
|
||||||
reactive,
|
reactive,
|
||||||
|
readonly,
|
||||||
ref,
|
ref,
|
||||||
withKeys,
|
withKeys,
|
||||||
withModifiers,
|
withModifiers,
|
||||||
|
@ -190,6 +191,7 @@ describe('with object props', () => {
|
||||||
f: reactive({
|
f: reactive({
|
||||||
g: ref('hello' as GT),
|
g: ref('hello' as GT),
|
||||||
}),
|
}),
|
||||||
|
m: readonly(ref(1))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
provide() {
|
provide() {
|
||||||
|
@ -259,6 +261,9 @@ describe('with object props', () => {
|
||||||
// setup context properties should be mutable
|
// setup context properties should be mutable
|
||||||
this.c = 2
|
this.c = 2
|
||||||
|
|
||||||
|
// @ts-expect-error setup context readonly properties should not be mutable
|
||||||
|
this.m = 2
|
||||||
|
|
||||||
return null
|
return null
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue