Assert that the request to the JWT service looks right

This commit is contained in:
Robin
2025-01-19 21:12:26 -05:00
parent 9dd540d91e
commit d901e21804

View File

@@ -47,6 +47,17 @@ test("getSFUConfigWithOpenID gets the JWT token", async () => {
jwt: "JWT token",
url: "LiveKit URL",
});
expect(fetch).toHaveBeenCalledWith("LiveKit service URL/sfu/get", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
room: "LiveKit alias",
openid_token: {},
device_id: "Device ID",
}),
});
});
});