From 9c9d2560b2f8ef6ebc95af1bd8c12a35561cadd4 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 24 Oct 2024 11:17:31 +0200 Subject: [PATCH] Remove fetchEnriched --- .../server/src/api/routes/tests/rowAction.spec.ts | 2 +- packages/server/src/tests/utilities/api/automation.ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/server/src/api/routes/tests/rowAction.spec.ts b/packages/server/src/api/routes/tests/rowAction.spec.ts index 5cec83fe23..2b6b0f01c9 100644 --- a/packages/server/src/api/routes/tests/rowAction.spec.ts +++ b/packages/server/src/api/routes/tests/rowAction.spec.ts @@ -958,7 +958,7 @@ describe("/rowsActions", () => { // document was not being cleaned up. This meant there existed code paths // that would find it and try to reference the tables within it, resulting // in errors. - await config.api.automation.fetchEnriched({ + await config.api.automation.fetch({ status: 200, }) }) diff --git a/packages/server/src/tests/utilities/api/automation.ts b/packages/server/src/tests/utilities/api/automation.ts index 11c041d52b..9d9a27e891 100644 --- a/packages/server/src/tests/utilities/api/automation.ts +++ b/packages/server/src/tests/utilities/api/automation.ts @@ -23,17 +23,6 @@ export class AutomationAPI extends TestAPI { }) } - fetchEnriched = async ( - expectations?: Expectations - ): Promise => { - return await this._get( - `/api/automations?enrich=true`, - { - expectations, - } - ) - } - post = async ( body: Automation, expectations?: Expectations