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
Following tests should not pass, but pass in Node v4+ and modern browsers that support ES6.
expect('a').to.be.eql(['a']); expect('a').to.be.eql({0: 'a'}); expect(1).to.be.eql({}); expect(true).to.be.eql({});
Change of Object.keys in ES6 causes this issue. I've fixed same issues in Node.js core assert.deepEqual and commonjs-assert.
The text was updated successfully, but these errors were encountered:
Was there a test for this in expect that used eql()?
eql()
Sorry, something went wrong.
expect([]).to.eql({})
This passes as well, although that may be intended behaviour.
expect({ a: '1' }).to.eql({ a: 1 })
This also passes. I understand it's because the two values loosely equal one another but maybe there could be a separate method for comparing objects?
No branches or pull requests
Following tests should not pass, but pass in Node v4+ and modern browsers that support ES6.
Change of Object.keys in ES6 causes this issue.
I've fixed same issues in Node.js core assert.deepEqual and commonjs-assert.
The text was updated successfully, but these errors were encountered: