update tests

remove comments
This commit is contained in:
Mateus Badan de Pieri 2023-02-07 15:47:11 +00:00
parent 8e480ac884
commit 7c702cd0ac
1 changed files with 0 additions and 3 deletions

View File

@ -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()
}) })
}) })