1
0
Fork 0
mirror of synced 2024-08-05 05:11:43 +12:00
This commit is contained in:
Sam Rose 2024-06-06 14:55:07 +01:00
parent 944689b17d
commit ac53a97176
No known key found for this signature in database
2 changed files with 9 additions and 1 deletions

View file

@ -360,6 +360,8 @@ export class DatabaseImpl implements Database {
SQLITE_DESIGN_DOC_ID
)
await this.remove(SQLITE_DESIGN_DOC_ID, definition._rev)
} catch (err: any) {
// design document doesn't exist, don't worry
} finally {
await this.sqlDiskCleanup()
}

View file

@ -331,9 +331,15 @@ describe("/applications", () => {
it("should delete published app and dev app with prod app ID", async () => {
await config.api.application.delete(app.appId.replace("_dev", ""))
expect(events.app.deleted).toHaveBeenCalledTimes(1)
expect(events.app.deleted).toHaveBeenCalledTmes(1)
expect(events.app.unpublished).toHaveBeenCalledTimes(1)
})
it.only("should be able to delete an app after SQS_SEARCH_ENABLE has been set but app hasn't been migrated", async () => {
await config.withCoreEnv({ SQS_SEARCH_ENABLE: "true" }, async () => {
await config.api.application.delete(app.appId)
})
})
})
describe("POST /api/applications/:appId/duplicate", () => {