test(reactivity): Add check if the child array gets unwrap (#434)
This commit is contained in:
parent
f9fb43f2e2
commit
c53ca29ea1
@ -61,6 +61,14 @@ describe('reactivity/ref', () => {
|
|||||||
expect(dummy1).toBe(3)
|
expect(dummy1).toBe(3)
|
||||||
expect(dummy2).toBe(3)
|
expect(dummy2).toBe(3)
|
||||||
expect(dummy3).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', () => {
|
it('should unwrap nested ref in types', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user