Test fixes
This commit is contained in:
parent
83eeddf422
commit
56fd28eb54
|
@ -68,7 +68,7 @@ describe("check the applications endpoints", () => {
|
|||
|
||||
describe("check the tables endpoints", () => {
|
||||
it("should allow retrieving tables through search", async () => {
|
||||
await config.createApp("new app 1")
|
||||
await config.createApp({ appName: "new app 1" })
|
||||
table = await config.upsertTable()
|
||||
const res = await makeRequest("post", "/tables/search")
|
||||
expect(res).toSatisfyApiSpec()
|
||||
|
|
|
@ -11,7 +11,7 @@ describe("run", () => {
|
|||
|
||||
beforeAll(async () => {
|
||||
await config.init()
|
||||
app = await config.createApp("testApp")
|
||||
app = await config.createApp({ appName: "testApp" })
|
||||
screen = await config.createScreen()
|
||||
})
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ describe("syncApps", () => {
|
|||
expect(usageDoc.usageQuota.apps).toEqual(3)
|
||||
|
||||
// create an extra app to test the migration
|
||||
await config.createApp("quota-test")
|
||||
await config.createApp({ appName: "quota-test" })
|
||||
|
||||
// migrate
|
||||
await syncApps.run()
|
||||
|
|
|
@ -29,7 +29,7 @@ describe("syncRows", () => {
|
|||
await config.createRow()
|
||||
})
|
||||
// app 2
|
||||
const app2 = await config.createApp("second-app")
|
||||
const app2 = await config.createApp({ appName: "second-app" })
|
||||
await context.doInAppContext(app2.appId, async () => {
|
||||
await config.createTable()
|
||||
await config.createRow()
|
||||
|
|
Loading…
Reference in New Issue