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()