From 9b76566f72e005a0eb8be8c9febfaf9c46f309d6 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Tue, 14 Jan 2025 07:01:37 +0000 Subject: [PATCH] revert renaming --- test/db-migrations/utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }), ); } }