test: add case

This commit is contained in:
KazariEX 2025-02-24 15:38:45 +08:00
parent ad29ea5ba1
commit 4f6ee56cd8
1 changed files with 5 additions and 0 deletions

View File

@ -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
}, },
}) })