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

Fix exception in diff code with arrays #185

Merged
merged 3 commits into from Jan 4, 2022

Conversation

marvinhagemeister
Copy link
Contributor

This PR addresses an issue where asserting arrays with non-arrays would crash the diff code instead of throwing an assertion error.

Fixes #178

@codecov-commenter
Copy link

codecov-commenter commented Jan 4, 2022

Codecov Report

Merging #185 (902b909) into master (ff50a71) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #185   +/-   ##
=======================================
  Coverage   89.48%   89.48%           
=======================================
  Files           4        4           
  Lines         333      333           
=======================================
  Hits          298      298           
  Misses         35       35           
Impacted Files Coverage Δ
src/diff.js 98.38% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 957fa25...902b909. Read the comment docs.

test/assert.js Outdated Show resolved Hide resolved
src/diff.js Outdated Show resolved Hide resolved
@lukeed lukeed merged commit c6ef0b7 into lukeed:master Jan 4, 2022
@lukeed
Copy link
Owner

lukeed commented Jan 4, 2022

Thank you sir~!

@marvinhagemeister marvinhagemeister deleted the array_diff branch January 4, 2022 20:39
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 this pull request may close these issues.

bug: equal comparing null vs. array
3 participants