Skip to content

Commit c53ca29

Browse files
Carlos Rodriguesyyx990803
Carlos Rodrigues
authored andcommitted
test(reactivity): Add check if the child array gets unwrap (#434)
1 parent f9fb43f commit c53ca29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/reactivity/__tests__/ref.spec.ts

+8
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ describe('reactivity/ref', () => {
6161
expect(dummy1).toBe(3)
6262
expect(dummy2).toBe(3)
6363
expect(dummy3).toBe(3)
64+
obj.b.c++
65+
expect(dummy1).toBe(4)
66+
expect(dummy2).toBe(4)
67+
expect(dummy3).toBe(4)
68+
obj.b.d[0]++
69+
expect(dummy1).toBe(5)
70+
expect(dummy2).toBe(5)
71+
expect(dummy3).toBe(5)
6472
})
6573

6674
it('should unwrap nested ref in types', () => {

0 commit comments

Comments
 (0)