From ca2a642bc82a49b6b0b0abb5430a393efa4f28ec Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 9 May 2026 19:57:01 +0100 Subject: [PATCH] Fix invalid ResourceStatus value in Unraid storage tests The new Unraid presentation tests used 'warning' for the resource status, which isn't a valid ResourceStatus literal and tripped the pre-push type check. Use 'degraded', which is the canonical attention-status value. --- .../__tests__/resourceStoragePresentation.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts b/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts index 8238c859c..25d690913 100644 --- a/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts +++ b/frontend-modern/src/features/storageBackups/__tests__/resourceStoragePresentation.test.ts @@ -175,7 +175,7 @@ describe('resourceStoragePresentation', () => { const resource = makeResource({ type: 'storage', name: 'Tower Array', - status: 'warning', + status: 'degraded', storage: { protection: 'none', protectionReduced: true, @@ -216,7 +216,7 @@ describe('resourceStoragePresentation', () => { const resource = makeResource({ type: 'storage', name: 'Tower Array', - status: 'warning', + status: 'degraded', storage: { protection: 'none', protectionReduced: true, @@ -245,7 +245,7 @@ describe('resourceStoragePresentation', () => { const resource = makeResource({ type: 'storage', name: 'Tower Array', - status: 'warning', + status: 'degraded', storage: { protectionReduced: false, rebuildInProgress: true,