Fix lint.
This commit is contained in:
parent
e5ae064d2c
commit
00970d5db3
|
@ -25,7 +25,6 @@ import {
|
||||||
import { tableForDatasource } from "../../../tests/utilities/structures"
|
import { tableForDatasource } from "../../../tests/utilities/structures"
|
||||||
import nock from "nock"
|
import nock from "nock"
|
||||||
import { Knex } from "knex"
|
import { Knex } from "knex"
|
||||||
import { uuid } from "@budibase/backend-core/tests/core/utilities/structures"
|
|
||||||
|
|
||||||
describe("/datasources", () => {
|
describe("/datasources", () => {
|
||||||
const config = setup.getConfig()
|
const config = setup.getConfig()
|
||||||
|
@ -443,9 +442,9 @@ describe("/datasources", () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe.only("info", () => {
|
describe("info", () => {
|
||||||
it("should fetch information about a datasource with a single table", async () => {
|
it("should fetch information about a datasource with a single table", async () => {
|
||||||
const tableName = uuid()
|
const tableName = generator.guid()
|
||||||
await client.schema.createTable(tableName, table => {
|
await client.schema.createTable(tableName, table => {
|
||||||
table.increments("id").primary()
|
table.increments("id").primary()
|
||||||
table.string("name")
|
table.string("name")
|
||||||
|
@ -456,7 +455,12 @@ describe("/datasources", () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it("should fetch information about a datasource with multiple tables", async () => {
|
it("should fetch information about a datasource with multiple tables", async () => {
|
||||||
const tableNames = [uuid(), uuid(), uuid(), uuid()]
|
const tableNames = [
|
||||||
|
generator.guid(),
|
||||||
|
generator.guid(),
|
||||||
|
generator.guid(),
|
||||||
|
generator.guid(),
|
||||||
|
]
|
||||||
for (const tableName of tableNames) {
|
for (const tableName of tableNames) {
|
||||||
await client.schema.createTable(tableName, table => {
|
await client.schema.createTable(tableName, table => {
|
||||||
table.increments("id").primary()
|
table.increments("id").primary()
|
||||||
|
|
Loading…
Reference in New Issue