From 3bb85f6e467f527a19bf8570fde253aafd5fc520 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 18 Jan 2023 13:55:24 +0000 Subject: [PATCH] Clean code --- packages/server/src/integration-test/row.spec.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/server/src/integration-test/row.spec.ts b/packages/server/src/integration-test/row.spec.ts index 4863047265..3027c796bb 100644 --- a/packages/server/src/integration-test/row.spec.ts +++ b/packages/server/src/integration-test/row.spec.ts @@ -9,15 +9,10 @@ import supertest from "supertest" import { Datasource, FieldType, SourceName } from "@budibase/types" const config = setup.getConfig() -let apiKey, - table, - app, - makeRequest: MakeRequestResponse, - postgresDatasource: Datasource +let apiKey, makeRequest: MakeRequestResponse, postgresDatasource: Datasource beforeAll(async () => { - app = await config.init() - table = await config.updateTable() + await config.init() apiKey = await config.generateApiKey() postgresDatasource = await config.createDatasource({ type: "datasource", @@ -35,6 +30,7 @@ beforeAll(async () => { ca: false, }, }) + makeRequest = generateMakeRequest(apiKey) })