fix: update assert.compareArray.format to accept "spreadable"

This commit is contained in:
rwaldron 2021-09-24 09:26:29 -04:00
parent 50dd431dff
commit 78554b2dac

View File

@ -26,8 +26,8 @@ compareArray.isSameValue = function(a, b) {
return a === b; return a === b;
}; };
compareArray.format = function(array) { compareArray.format = function(spreadable) {
return `[${array.map(String).join(', ')}]`; return `[${[...spreadable].map(String).join(', ')}]`;
}; };
assert.compareArray = function(actual, expected, message) { assert.compareArray = function(actual, expected, message) {