Browse Source

Update tests

master
Andrew Kingston 5 years ago
parent
commit
04054cf652
  1. 11
      packages/server/src/api/routes/tests/query.spec.js

11
packages/server/src/api/routes/tests/query.spec.js

@ -19,10 +19,12 @@ describe("/queries", () => {
}) })
async function createInvalidIntegration() { async function createInvalidIntegration() {
const datasource = await config.createDatasource({datasource: { const datasource = await config.createDatasource({
...basicDatasource().datasource, datasource: {
source: "INVALID_INTEGRATION", ...basicDatasource().datasource,
}}) source: "INVALID_INTEGRATION",
},
})
const query = await config.createQuery() const query = await config.createQuery()
return { datasource, query } return { datasource, query }
} }
@ -98,7 +100,6 @@ describe("/queries", () => {
.expect("Content-Type", /json/) .expect("Content-Type", /json/)
expect(res.body.fields).toBeUndefined() expect(res.body.fields).toBeUndefined()
expect(res.body.parameters).toBeUndefined() expect(res.body.parameters).toBeUndefined()
expect(res.body.schema).toBeUndefined()
}) })
}) })
}) })

Loading…
Cancel
Save