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

toEquals does not match array of Symbols #194

Closed
mrsoto opened this issue Feb 4, 2017 · 2 comments
Closed

toEquals does not match array of Symbols #194

mrsoto opened this issue Feb 4, 2017 · 2 comments
Assignees

Comments

@mrsoto
Copy link

mrsoto commented Feb 4, 2017

This test fail

describe('Having an array of Symbols', () => {
    const elementA = Symbol('A')
    const elementB = Symbol('B')

    it('toEqual should match', () => {
        expect([elementA, elementB]).toEqual([elementA, elementB])
    })
}
@mrsoto mrsoto changed the title toBeEquals does not match array of Symbols toEquals does not match array of Symbols Feb 4, 2017
@ljharb
Copy link
Collaborator

ljharb commented Feb 5, 2017

Can you include the failure message?

@ljharb
Copy link
Collaborator

ljharb commented Feb 5, 2017

As soon as travis-ci completes, I'll publish v1.5.5 of is-equal which will fix this for expect users on the next npm install after that.

ljharb added a commit to inspect-js/is-equal that referenced this issue Feb 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants