We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
expect(null).to.eql(undefined) fails
The text was updated successfully, but these errors were encountered:
If you look at the source code you can see that eql is using the strict equal operator (===), so this is an expected behavior.
eql
===
Sorry, something went wrong.
That makes no sense. I want loose equality so I'm using .eql instead of be/equal. According to the README:
be / equal: asserts === equality eql: asserts loose equality that works with objects
Unless I'm reading the README wrong, eql asserts LOOSE equality. Try plain Javascript without expect. null == undefined // true
#136 had the same question, and I agree with it.
I made a fork called expecting.js which should fix this problem, if you're interested. I realize it's a few years too late, but maybe it'll help!
No branches or pull requests
expect(null).to.eql(undefined) fails
The text was updated successfully, but these errors were encountered: