Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Immutable.OrderedSet equality comparison failure #12976

Closed
pbomb opened this issue Jun 29, 2022 · 1 comment · Fixed by #12977
Closed

[Bug]: Immutable.OrderedSet equality comparison failure #12976

pbomb opened this issue Jun 29, 2022 · 1 comment · Fixed by #12977

Comments

@pbomb
Copy link
Contributor

pbomb commented Jun 29, 2022

Version

28.1.2

Steps to reproduce

import { OrderedSet, List } from 'immutable';

it('works with immutable objects', () => {
  const a = OrderedSet().add('newValue');
  const b = List(['newValue']).toOrderedSet();
  expect(Immutable.is(a, b)).toBe(true); // passes
  expect(a).toEqual(b); // fails
});

Expected behavior

The test should pass

Actual behavior

The isEqual test fails. The Immutable.is(a, b) assertion passes.

Additional context

This is the same issue as #12860, but needs its own condition.

Environment

System:
    OS: macOS 12.4
    CPU: (10) x64 Apple M1 Pro
  Binaries:
    Node: 14.18.1 - /var/folders/b4/0jgrn8fx6vn5bd59pmybg6zw0000gn/T/fnm_multishells/4762_1652895535386/bin/node
    Yarn: 1.22.18 - ~/workspace/zenpayroll/node_modules/.bin/yarn
    npm: 8.3.1 - /opt/homebrew/bin/npm
  npmPackages:
    jest: ^28.1.2 => 28.1.2
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant