From 1024bd1dbf6132d18701a346fbd8775e5f1f2c34 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 30 Jan 2024 09:23:28 +0100 Subject: [PATCH] Lint --- packages/server/src/api/routes/tests/query.seq.spec.ts | 4 +++- packages/server/src/tests/utilities/structures.ts | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/server/src/api/routes/tests/query.seq.spec.ts b/packages/server/src/api/routes/tests/query.seq.spec.ts index eea856f465..2790a9d8bf 100644 --- a/packages/server/src/api/routes/tests/query.seq.spec.ts +++ b/packages/server/src/api/routes/tests/query.seq.spec.ts @@ -1,5 +1,4 @@ import tk from "timekeeper" -tk.freeze(Date.now()) // Mock out postgres for this jest.mock("pg") @@ -20,10 +19,13 @@ jest.mock("@budibase/backend-core", () => { import * as setup from "./utilities" import { checkBuilderEndpoint } from "./utilities/TestFunctions" import { checkCacheForDynamicVariable } from "../../../threads/utils" + const { basicQuery, basicDatasource } = setup.structures import { events, db as dbCore } from "@budibase/backend-core" import { Datasource, Query, SourceName } from "@budibase/types" +tk.freeze(Date.now()) + const mockIsProdAppID = dbCore.isProdAppID as jest.MockedFunction< typeof dbCore.isProdAppID > diff --git a/packages/server/src/tests/utilities/structures.ts b/packages/server/src/tests/utilities/structures.ts index cd2389e2eb..b1c2c494a5 100644 --- a/packages/server/src/tests/utilities/structures.ts +++ b/packages/server/src/tests/utilities/structures.ts @@ -21,9 +21,8 @@ import { Table, INTERNAL_TABLE_SOURCE_ID, TableSourceType, - AutomationIOType, + Query, } from "@budibase/types" -import { Query } from "@budibase/types" const { BUILTIN_ROLE_IDS } = roles