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: equal comparing null vs. array #178

Closed
revelt opened this issue Dec 16, 2021 · 1 comment · Fixed by #185
Closed

bug: equal comparing null vs. array #178

revelt opened this issue Dec 16, 2021 · 1 comment · Fixed by #185

Comments

@revelt
Copy link

revelt commented Dec 16, 2021

The following assert is causing uvu throws:

assert.equal(null, [1]);

it's causing an error:

Cannot read properties of null (reading 'slice')

which is coming from diff:

Screenshot 2021-12-16 at 00 59 49

also, assert.equal({}, [1]); is failing too.

@revelt
Copy link
Author

revelt commented Jan 5, 2022

good job! 👍

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

Successfully merging a pull request may close this issue.

1 participant