test(reactivity): Add check if the child array gets unwrap (#434)

This commit is contained in:
Carlos Rodrigues 2019-11-07 14:28:49 +00:00 committed by Evan You
parent f9fb43f2e2
commit c53ca29ea1

View File

@ -61,6 +61,14 @@ describe('reactivity/ref', () => {
expect(dummy1).toBe(3)
expect(dummy2).toBe(3)
expect(dummy3).toBe(3)
obj.b.c++
expect(dummy1).toBe(4)
expect(dummy2).toBe(4)
expect(dummy3).toBe(4)
obj.b.d[0]++
expect(dummy1).toBe(5)
expect(dummy2).toBe(5)
expect(dummy3).toBe(5)
})
it('should unwrap nested ref in types', () => {