diff --git a/packages/server/src/api/routes/tests/row.spec.ts b/packages/server/src/api/routes/tests/row.spec.ts index 22dca18023..371045687b 100644 --- a/packages/server/src/api/routes/tests/row.spec.ts +++ b/packages/server/src/api/routes/tests/row.spec.ts @@ -742,7 +742,7 @@ describe.each([ it("should throw an error if view doesn't exist", async () => { const rowUsage = await getRowUsage() - await config.api.legacyView.get("derp", { status: 404 }) + await config.api.legacyView.get("derp", undefined, { status: 404 }) await assertRowUsage(rowUsage) }) diff --git a/packages/server/src/tests/utilities/api/legacyView.ts b/packages/server/src/tests/utilities/api/legacyView.ts index 19a6eceb3b..b018988670 100644 --- a/packages/server/src/tests/utilities/api/legacyView.ts +++ b/packages/server/src/tests/utilities/api/legacyView.ts @@ -4,7 +4,7 @@ import { Row, View, ViewCalculation } from "@budibase/types" export class LegacyViewAPI extends TestAPI { get = async ( id: string, - query: { calculation: ViewCalculation; group?: string }, + query?: { calculation: ViewCalculation; group?: string }, expectations?: Expectations ) => { return await this._get(`/api/views/${id}`, { query, expectations })