fix: update stale blast-radius test assertion for active_runtime_use

The createDeleteBlastRadius helper now includes 'active_runtime_use' in
deleteBlockedReasons when hasActiveRuntimeUse is true. The existing
blast-radius test for instance admins passed activeLeaseCount: 1, so
the helper produces canDelete: false / deleteBlockedReasons: ['active_runtime_use'],
but the assertion still expected the old canDelete: true / deleteBlockedReasons: [].

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Harold KimandPaperclip committed 2026-07-09 09:51:14 +00:00
1 parent 5b4e21dbd8
commit f4514f3c6d
1 file changed
+2 -2
@@ -422,8 +422,8 @@ describe("environment routes", () => {
expect(res.status).toBe(200);
expect(res.body).toEqual({
environmentId: "env-1",
canDelete: true,
deleteBlockedReasons: [],
canDelete: false,
deleteBlockedReasons: ["active_runtime_use"],
staticReferences: {
isManagedLocal: false,
isInstanceDefault: false,