WIP
This commit is contained in:
parent
944689b17d
commit
ac53a97176
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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", () => {
|
||||
|
|
Loading…
Reference in New Issue