lukeed / uvu

uvu is an extremely fast and lightweight test runner for Node.js and the browser
MIT License
2.97k stars 100 forks source link

Fix exception in diff code with arrays #185

Closed marvinhagemeister closed 2 years ago

marvinhagemeister commented 2 years ago

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 commented 2 years ago

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.

lukeed commented 2 years ago

Thank you sir~!