Test bulk deletion missing-app validation

This commit is contained in:
Kasra Bigdeli
2026-07-19 15:03:14 -07:00
parent 43cb3ee061
commit fe2819ca82
+13
View File
@@ -0,0 +1,13 @@
import { ensureAppsExist } from '../src/routes/user/apps/appdefinition/AppDefinitionRouter'
describe('app deletion', () => {
test('rejects the entire request when any requested app is missing', () => {
expect(() =>
ensureAppsExist(['existing-app', 'missing-app'], {
'existing-app': {},
})
).toThrow(
'App (missing-app) could not be found. Make sure that you have created the app.'
)
})
})