parent
8e480ac884
commit
7c702cd0ac
|
@ -91,7 +91,6 @@ describe("/api/env/variables", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should run a query preview and check the mocked results", async () => {
|
it("should run a query preview and check the mocked results", async () => {
|
||||||
// TODO: use the preview API
|
|
||||||
const datasourceBase = structures.basicDatasource()
|
const datasourceBase = structures.basicDatasource()
|
||||||
await request
|
await request
|
||||||
.post(`/api/env/variables`)
|
.post(`/api/env/variables`)
|
||||||
|
@ -122,7 +121,6 @@ describe("/api/env/variables", () => {
|
||||||
.set(config.defaultHeaders())
|
.set(config.defaultHeaders())
|
||||||
.expect("Content-Type", /json/)
|
.expect("Content-Type", /json/)
|
||||||
.expect(200)
|
.expect(200)
|
||||||
// these responses come from the mock
|
|
||||||
expect(res.body.schemaFields).toEqual({
|
expect(res.body.schemaFields).toEqual({
|
||||||
a: "string",
|
a: "string",
|
||||||
b: "number",
|
b: "number",
|
||||||
|
@ -134,6 +132,5 @@ describe("/api/env/variables", () => {
|
||||||
response.body.datasource,
|
response.body.datasource,
|
||||||
query
|
query
|
||||||
)
|
)
|
||||||
//expect(postgres.integration).toHaveBeenCalledWith()
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue