Skip to content

Commit 8e465ab

Browse files
committed
Demonstrate possible regression
1 parent 15a449a commit 8e465ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

__tests__/base.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ function runBaseTest(name, autoFreeze, useStrictShallowCopy, useListener) {
941941
if (canReferNonEnumerableProperty) s.foo.a++
942942
if (useStrictShallowCopy) expect(isEnumerable(s, "foo")).toBeFalsy()
943943
})
944-
if (canReferNonEnumerableProperty) expect(nextState.foo).toBeTruthy()
944+
if (canReferNonEnumerableProperty) {
945+
expect(nextState.foo).toEqual({a: 2})
946+
}
945947
if (useStrictShallowCopy)
946948
expect(isEnumerable(nextState, "foo")).toBeFalsy()
947949
if (useStrictShallowCopy) expect(nextState.baz).toBeTruthy()

0 commit comments

Comments
 (0)