test(reactivity): Using toRaw on a raw Array (#7354)

This commit is contained in:
2023-01-09 22:19:19 +08:00 committed by GitHub
parent b7cfa6f539
commit 8731852919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -150,8 +150,7 @@ describe('reactivity/reactive/Array', () => {
// read + copy // read + copy
test('read only copy methods', () => { test('read only copy methods', () => {
const res = original.concat([3, ref(4)]) const raw = original.concat([3, ref(4)])
const raw = toRaw(res)
expect(isRef(raw[1])).toBe(true) expect(isRef(raw[1])).toBe(true)
expect(isRef(raw[3])).toBe(true) expect(isRef(raw[3])).toBe(true)
}) })