From f377b9f5660a5f9558c3e8aaf4d2f557de2fd8e1 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 11 Sep 2024 15:39:21 +0100 Subject: [PATCH] remove top level table config --- .../src/automations/tests/scenarios/scenarios.spec.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/server/src/automations/tests/scenarios/scenarios.spec.ts b/packages/server/src/automations/tests/scenarios/scenarios.spec.ts index 9a8f1597e8..40d6094525 100644 --- a/packages/server/src/automations/tests/scenarios/scenarios.spec.ts +++ b/packages/server/src/automations/tests/scenarios/scenarios.spec.ts @@ -1,24 +1,23 @@ import * as automation from "../../index" import * as setup from "../utilities" -import { Table, LoopStepType, FieldType } from "@budibase/types" +import { LoopStepType, FieldType } from "@budibase/types" import { createAutomationBuilder } from "../utilities/AutomationTestBuilder" import { DatabaseName } from "../../../integrations/tests/utils" describe("Automation Scenarios", () => { - let config = setup.getConfig(), - table: Table + let config = setup.getConfig() beforeEach(async () => { await automation.init() await config.init() - table = await config.createTable() - await config.createRow() }) afterAll(setup.afterAll) describe("Row Automations", () => { it("should trigger an automation which then creates a row", async () => { + const table = await config.createTable() + const builder = createAutomationBuilder({ name: "Test Row Save and Create", }) @@ -53,6 +52,7 @@ describe("Automation Scenarios", () => { }) it("should trigger an automation which querys the database", async () => { + const table = await config.createTable() const row = { name: "Test Row", description: "original description", @@ -76,6 +76,7 @@ describe("Automation Scenarios", () => { }) it("should trigger an automation which querys the database then deletes a row", async () => { + const table = await config.createTable() const row = { name: "DFN", description: "original description",