Skip to content

Commit

Permalink
test(reactivity): Using toRaw on a raw Array (vuejs#7354)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsypower authored and zhangzhonghe committed Apr 12, 2023
1 parent 5648575 commit e4f3ab0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/reactivity/__tests__/reactiveArray.spec.ts
Expand Up @@ -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)
})
Expand Down

0 comments on commit e4f3ab0

Please sign in to comment.