GaneshSPatil/chai-arrays

Compare function returns 'true' when tested arrays length is not equal

Closed this issue · 3 comments

assertArrays.js @ 13
const compare = function(actual, expected) { return actual.every((value, index) => value === expected[index]); };

compare([], [1, 2, 3]); // true
compare([1, 2], [1, 2, 3]); // true

@psxcode -- thanks for reporting the issue.
I have published v1.1.0 which contains the fix for the current issue.
can you please verify?

Thanks

Great.
I think that did it.
It works now.

@psxcode -- Thanks