Removing meta from test API, it cannot be supplied, it is an internal property.

This commit is contained in:
Michael Drury 2024-04-16 17:28:13 +01:00
parent 8b0fc5ed5d
commit 2efbd6726c
2 changed files with 4 additions and 4 deletions

View File

@ -755,9 +755,6 @@ describe.each(
name: "two",
},
},
meta: {
table: config.table!,
},
})
expect(res).toHaveLength(1)
expect(res[0]).toEqual({

View File

@ -60,7 +60,10 @@ export class DatasourceAPI extends TestAPI {
})
}
query = async (query: QueryJson, expectations?: Expectations) => {
query = async (
query: Omit<QueryJson, "meta">,
expectations?: Expectations
) => {
return await this._post<any>(`/api/datasources/query`, {
body: query,
expectations,