Fix type check errors.
This commit is contained in:
parent
945efd7aa6
commit
76e1a4b7da
|
@ -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)
|
||||
})
|
||||
|
|
|
@ -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<Row[]>(`/api/views/${id}`, { query, expectations })
|
||||
|
|
Loading…
Reference in New Issue