1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Test fixes

This commit is contained in:
Dean 2024-05-02 16:45:25 +01:00
parent 83eeddf422
commit 56fd28eb54
4 changed files with 4 additions and 4 deletions

View file

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

View file

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

View file

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

View file

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