mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-28 06:50:26 +00:00
Assert that the request to the JWT service looks right
This commit is contained in:
@@ -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",
|
||||
}),
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user