fix urls in test
This commit is contained in:
parent
13e7cde723
commit
a9924a7f76
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user