mirror of
https://github.com/caprover/caprover
synced 2026-10-25 08:09:59 +00:00
Test bulk deletion missing-app validation
This commit is contained in:
1 parent
43cb3ee061
commit
fe2819ca82
1 file changed
+13
@@ -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.'
|
||||
)
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user