From 1c66a6f2e2222257164fc36bfa973420f034ec14 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 16 Feb 2021 16:46:18 +0000 Subject: [PATCH] Fixing test case. --- packages/server/src/api/routes/tests/row.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/routes/tests/row.spec.js b/packages/server/src/api/routes/tests/row.spec.js index c411016b71..b8f74c103e 100644 --- a/packages/server/src/api/routes/tests/row.spec.js +++ b/packages/server/src/api/routes/tests/row.spec.js @@ -7,7 +7,7 @@ const { createAttachmentTable, makeBasicRow, } = require("./couchTestUtils"); -const { enrichRows } = require("../../../utilities") +const { outputProcessing } = require("../../../utilities/rowProcessor") const env = require("../../../environment") describe("/rows", () => { @@ -285,7 +285,7 @@ describe("/rows", () => { link: [firstRow._id], tableId: table._id, })).body - const enriched = await enrichRows(appId, table, [secondRow]) + const enriched = await outputProcessing(appId, table, [secondRow]) expect(enriched[0].link.length).toBe(1) expect(enriched[0].link[0]).toBe(firstRow._id) }) @@ -304,7 +304,7 @@ describe("/rows", () => { // the environment needs configured for this env.CLOUD = 1 env.SELF_HOSTED = 1 - const enriched = await enrichRows(appId, table, [row]) + const enriched = await outputProcessing(appId, table, [row]) expect(enriched[0].attachment[0].url).toBe(`/app-assets/assets/${appId}/test/thing`) // remove env config env.CLOUD = undefined