test(reactivity): enable tests marked as todo (#13003)

PR #12349 marked these tests as todo. They are actually working now.
This commit is contained in:
Cédric Exbrayat 2025-03-07 09:36:32 +01:00 committed by GitHub
parent 1ac0499b7d
commit 6f85cbaaa4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ describe.skipIf(!global.gc)('reactivity/gc', () => {
} }
// #9233 // #9233
it.todo('should release computed cache', async () => { it('should release computed cache', async () => {
const src = ref<{} | undefined>({}) const src = ref<{} | undefined>({})
// @ts-expect-error ES2021 API // @ts-expect-error ES2021 API
const srcRef = new WeakRef(src.value!) const srcRef = new WeakRef(src.value!)
@ -35,7 +35,7 @@ describe.skipIf(!global.gc)('reactivity/gc', () => {
expect(srcRef.deref()).toBeUndefined() expect(srcRef.deref()).toBeUndefined()
}) })
it.todo('should release reactive property dep', async () => { it('should release reactive property dep', async () => {
const src = reactive({ foo: 1 }) const src = reactive({ foo: 1 })
let c: ComputedRef | undefined = computed(() => src.foo) let c: ComputedRef | undefined = computed(() => src.foo)