From 769c4ce8fb28e173768604b510b8ba1251cca624 Mon Sep 17 00:00:00 2001 From: weiyafei <2553241022@qq.com> Date: Fri, 16 Dec 2022 01:27:49 +0800 Subject: [PATCH] test(reactivity): Using toRaw on a raw Array --- 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) })