From 229fa4b36cd1657bfcb9c3742ad0767a128ab4eb Mon Sep 17 00:00:00 2001 From: faumaray Date: Tue, 28 Jul 2026 21:41:55 +0300 Subject: [PATCH] Release: enforce root version across component feeds --- frontend/src/lib/updates.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/lib/updates.test.ts b/frontend/src/lib/updates.test.ts index b587600..a9dbe55 100644 --- a/frontend/src/lib/updates.test.ts +++ b/frontend/src/lib/updates.test.ts @@ -74,11 +74,24 @@ describe('update payload normalization', () => { signed: false, requiresRestart: true, }); + expect(status.components.core).toMatchObject({ + component: 'core', + currentVersion: '4.0.0', + state: 'healthy', + }); + expect(status.components.plugins).toMatchObject({ + component: 'plugins', + state: 'current', + }); expect(status.plugins[0]).toMatchObject({ id: 'weather', managed: true, currentVersion: '2.0.0', }); + expect(status.plugins[0].candidate).toMatchObject({ + version: '2.1.0', + signed: true, + }); expect(status.history).toHaveLength(1); });