diff --git a/test/db-migrations/utils.js b/test/db-migrations/utils.js index d98007697..43e811d2d 100644 --- a/test/db-migrations/utils.js +++ b/test/db-migrations/utils.js @@ -77,22 +77,22 @@ function assertRowsMatch(actualRows, expectedRows) { const remainingRows = [...actualRows]; for (let i=0; i _.pick(r, Object.keys(expectedRow))); + const filteredRemainingRows = remainingRows.map(r => _.pick(r, Object.keys(x))); assert.fail( `Expected row ${i} not found:\njson=` + - JSON.stringify({ remainingRows, filteredRemainingRows, expectedRow }), + JSON.stringify({ remainingRows, filteredRemainingRows, expectedRow: x }), ); } }