From 62ba7f394a078e3e6d75ccd122e8b22f87dc6691 Mon Sep 17 00:00:00 2001 From: Federico Jaramillo Martinez Date: Sun, 12 Jul 2026 23:30:05 +0200 Subject: [PATCH] test(client): cover resolved update check URLs --- src/client/src/api/clients.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/api/clients.test.ts b/src/client/src/api/clients.test.ts index da00c18..60a6dea 100644 --- a/src/client/src/api/clients.test.ts +++ b/src/client/src/api/clients.test.ts @@ -64,7 +64,7 @@ describe("machine-scoped runtime API", () => { await piWebApi.checkForUpdates(); expect(fetchMock).toHaveBeenCalledOnce(); - expect(fetchCall(fetchMock, 0)[0]).toBe("/api/pi-web/status?refresh=1"); + expect(fetchCall(fetchMock, 0)[0]).toBe("https://pi.example.test/api/pi-web/status?refresh=1"); expect(fetchCall(fetchMock, 0)[1]?.cache).toBe("no-store"); }); @@ -74,7 +74,7 @@ describe("machine-scoped runtime API", () => { await piWebApi.checkForUpdates("remote a"); expect(fetchMock).toHaveBeenCalledOnce(); - expect(fetchCall(fetchMock, 0)[0]).toBe("/api/machines/remote%20a/pi-web/status?refresh=1"); + expect(fetchCall(fetchMock, 0)[0]).toBe("https://pi.example.test/api/machines/remote%20a/pi-web/status?refresh=1"); expect(fetchCall(fetchMock, 0)[1]?.cache).toBe("no-store"); });