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

uvu throws trying to print diff containing a symbol #66

Open
m59peacemaker opened this issue Nov 21, 2020 · 0 comments
Open

uvu throws trying to print diff containing a symbol #66

m59peacemaker opened this issue Nov 21, 2020 · 0 comments

Comments

@m59peacemaker
Copy link

m59peacemaker commented Nov 21, 2020

The following example throws at https://github.com/lukeed/uvu/blob/master/src/diff.js#L191

const flag = Symbol()
assert.equal([ 1, 2, flag ], [ 1, 0, flag ])
Cannot read property 'replace' of undefined

Maybe related to PR #62

Symbols are fine in regard to the assertion itself. When the test passes, all is well. The error/diff printing is just broken.

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

1 participant