From 8e465ab7f4d53525e72bc6b78e9204cb897cf528 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 11 Mar 2024 23:09:29 +0100 Subject: [PATCH] Demonstrate possible regression --- __tests__/base.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__tests__/base.js b/__tests__/base.js index 1c0059aa..6cfc05c2 100644 --- a/__tests__/base.js +++ b/__tests__/base.js @@ -941,7 +941,9 @@ function runBaseTest(name, autoFreeze, useStrictShallowCopy, useListener) { if (canReferNonEnumerableProperty) s.foo.a++ if (useStrictShallowCopy) expect(isEnumerable(s, "foo")).toBeFalsy() }) - if (canReferNonEnumerableProperty) expect(nextState.foo).toBeTruthy() + if (canReferNonEnumerableProperty) { + expect(nextState.foo).toEqual({a: 2}) + } if (useStrictShallowCopy) expect(isEnumerable(nextState, "foo")).toBeFalsy() if (useStrictShallowCopy) expect(nextState.baz).toBeTruthy()