You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Immutable from 'immutable';
it('works with immutable objects', () => {
const a = Immutable.OrderedMap().set('saving', true);
const b = Immutable.OrderedMap().merge({ saving: true });
console.log(a);
console.log(b);
expect(Immutable.is(a, b)).toBe(true);
expect(a).toEqual(b);
});
Expected behavior
The test should pass
Actual behavior
The isEqual test fails. The Immutable.is(a, b) assertion passes.
Additional context
This is possibly the same issue as #12752 that wasn't addressed in that fix. The call to merge sets an ownerID value on the _root property whereas the set call does not.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
Version
28.1.0
Steps to reproduce
Expected behavior
The test should pass
Actual behavior
The
isEqual
test fails. TheImmutable.is(a, b)
assertion passes.Additional context
This is possibly the same issue as #12752 that wasn't addressed in that fix. The call to
merge
sets anownerID
value on the_root
property whereas theset
call does not.Environment
The text was updated successfully, but these errors were encountered: