From e4f3ab065f2e820a8462a93536178a3ba014cdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F?= <2553241022@qq.com> Date: Mon, 9 Jan 2023 22:19:19 +0800 Subject: [PATCH] test(reactivity): Using toRaw on a raw Array (#7354) --- packages/reactivity/__tests__/reactiveArray.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/reactivity/__tests__/reactiveArray.spec.ts b/packages/reactivity/__tests__/reactiveArray.spec.ts index 1b7323fa97e..ea7921c6a62 100644 --- a/packages/reactivity/__tests__/reactiveArray.spec.ts +++ b/packages/reactivity/__tests__/reactiveArray.spec.ts @@ -150,8 +150,7 @@ describe('reactivity/reactive/Array', () => { // read + copy test('read only copy methods', () => { - const res = original.concat([3, ref(4)]) - const raw = toRaw(res) + const raw = original.concat([3, ref(4)]) expect(isRef(raw[1])).toBe(true) expect(isRef(raw[3])).toBe(true) })