fix urls in test
All checks were successful
Build and push image for doorman-homeassistant / docker (push) Successful in 40s
Build and push Doorman UI / API / docker (push) Successful in 2m37s
Build and push image for doorman-homeassistant / deploy-gitainer (push) Successful in 5s

This commit is contained in:
Martin Dimitrov 2025-10-04 13:37:53 -07:00
parent 13e7cde723
commit a9924a7f76

View File

@ -93,7 +93,7 @@ describe("call log path works", () => {
const statusReset = await fetch(baseUrl + `/api/door/status?door=${ONBOARDING_DOOR_NAME}`).then(res => res.json()) as StatusResponse;
// try to log call
const logCallRes = await fetch(baseUrl + `/api/door/callLog?caller=${buzzerNumber}`);
const logCallRes = await fetch(baseUrl + `/api/door/logCall?caller=${buzzerNumber}`);
expect(logCallRes.status).toBe(400);
});
@ -105,7 +105,7 @@ describe("call log path works", () => {
const authResp = await fetch(baseUrl + `/api/door/auth?door=${ONBOARDING_DOOR_NAME}&key=${ONBOARDING_DOOR_PIN}`);
// try to log call
const logCallRes = await fetch(baseUrl + `/api/door/callLog?caller=${buzzerNumber}`);
const logCallRes = await fetch(baseUrl + `/api/door/logCall?caller=${buzzerNumber}`);
expect(logCallRes.status).toBe(200);
const otp = (await logCallRes.json() as LogCallResponse).otp
@ -123,7 +123,7 @@ describe("call log path works", () => {
await sleep(1_000);
// try to log call
const logCallRes = await fetch(baseUrl + `/api/door/callLog?caller=${buzzerNumber}`);
const logCallRes = await fetch(baseUrl + `/api/door/logCall?caller=${buzzerNumber}`);
expect(logCallRes.status).toBe(400);
});
});