mirror of
https://github.com/vector-im/element-web.git
synced 2024-09-09 22:55:12 +00:00
Fix joining test
This had been broken by https://github.com/matrix-org/matrix-react-sdk/pull/399. Change the way we populate the matrixclient used for the joining tests.
This commit is contained in:
parent
b742342062
commit
dd6868c255
1 changed files with 8 additions and 11 deletions
|
@ -80,13 +80,10 @@ describe('joining a room', function () {
|
|||
httpBackend.when('GET', '/directory/room/'+encodeURIComponent(ROOM_ALIAS)).respond(200, { room_id: ROOM_ID });
|
||||
|
||||
// start with a logged-in client
|
||||
peg.replaceUsingCreds({
|
||||
homeserverUrl: HS_URL,
|
||||
identityServerUrl: IS_URL,
|
||||
userId: USER_ID,
|
||||
accessToken: ACCESS_TOKEN,
|
||||
guest: false,
|
||||
});
|
||||
localStorage.setItem("mx_hs_url", HS_URL );
|
||||
localStorage.setItem("mx_is_url", IS_URL );
|
||||
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
||||
localStorage.setItem("mx_user_id", USER_ID);
|
||||
|
||||
var mc = <MatrixChat config={{}}/>;
|
||||
matrixChat = ReactDOM.render(mc, parentDiv);
|
||||
|
|
Loading…
Reference in a new issue