]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
test(reactivity): Using toRaw on a raw Array (#7354)
author <2553241022@qq.com>
Mon, 9 Jan 2023 14:19:19 +0000 (22:19 +0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 14:19:19 +0000 (15:19 +0100)
packages/reactivity/__tests__/reactiveArray.spec.ts

index 1b7323fa97e0e5eb248ebc7cf3233ac5172e6839..ea7921c6a62c88fea406586bb98b83ea60456f4b 100644 (file)
@@ -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)
     })