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({ 0: 'hello', 1: 'world' }).toEqual([ 'hello', 'world' ]);
I don't think this should pass, but it does. Is there something I am missing, or is this not intended?
The text was updated successfully, but these errors were encountered:
JavaScript arrays are actually objects (with special semantics). I see no reason why that test shouldn't pass.
Sorry, something went wrong.
Node core no longer agrees: https://github.com/nodejs/LTS/wiki/Breaking-changes-between-v0.12-and-next-LTS-release#assert-check-object-prototype-in-assertdeepequal
nodejs/node#621
Object.getPrototypeOf([0]) === Object.getPrototypeOf({'0': 0}) false
assert.deepEqual
Successfully merging a pull request may close this issue.
I don't think this should pass, but it does. Is there something I am missing, or is this not intended?
The text was updated successfully, but these errors were encountered: