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
1 changed files with 2 additions and 2 deletions

View File

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