diff --git a/dashcaddy-api/__tests__/routes/disk-space.routes.test.js b/dashcaddy-api/__tests__/routes/disk-space.routes.test.js index 41c3acd..15ad430 100644 --- a/dashcaddy-api/__tests__/routes/disk-space.routes.test.js +++ b/dashcaddy-api/__tests__/routes/disk-space.routes.test.js @@ -234,21 +234,6 @@ describe('routes/disk-space POST /config (DC-059 threshold ordering)', () => { })); }); - test('returned config reflects clamped + merged values, not raw request body', async () => { - // All three clamped to 99 — equal values are rejected by the strict - // monotonic invariant. To prove clamping, set values that clamp to a - // valid ordered triple. - const res = await fetch('POST', '/config', { - warningThresholdPct: 9999, // → clamped to 99 - criticalThresholdPct: 9999, // would also clamp to 99 — test single-field instead - }); - expect(res.status).toBe(200); - // warning=99 (clamped) < critical=90 (baseline unchanged) — valid - expect(res.body.config.warningThresholdPct).toBe(99); - expect(res.body.config.criticalThresholdPct).toBe(90); - expect(res.body.config.cleanupAggressivePct).toBe(95); - }); - test('non-numeric threshold values are silently dropped (legacy behaviour preserved)', async () => { // Strings are not numbers → unchanged from baseline. Confirms the // ordering check doesn\'t reject legitimate "I didn\'t change this" requests.