From c53ca29ea183713f0a778bb6bf849f368a4e284b Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Thu, 7 Nov 2019 14:28:49 +0000 Subject: [PATCH] test(reactivity): Add check if the child array gets unwrap (#434) --- packages/reactivity/__tests__/ref.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/reactivity/__tests__/ref.spec.ts b/packages/reactivity/__tests__/ref.spec.ts index 89832ad6..34a440b1 100644 --- a/packages/reactivity/__tests__/ref.spec.ts +++ b/packages/reactivity/__tests__/ref.spec.ts @@ -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', () => {