mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-21 19:09:20 +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",
|
jwt: "JWT token",
|
||||||
url: "LiveKit URL",
|
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