mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 22:12:23 +00:00
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.
This commit is contained in:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user