Skip to content

Commit

Permalink
Demonstrate possible regression
Browse files Browse the repository at this point in the history
  • Loading branch information
NMinhNguyen authored and mweststrate committed Mar 9, 2024
1 parent 15a449a commit ecbb749
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion __tests__/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ecbb749

Please sign in to comment.