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
|
@ -80,13 +80,10 @@ describe('joining a room', function () {
|
||||||
httpBackend.when('GET', '/directory/room/'+encodeURIComponent(ROOM_ALIAS)).respond(200, { room_id: ROOM_ID });
|
httpBackend.when('GET', '/directory/room/'+encodeURIComponent(ROOM_ALIAS)).respond(200, { room_id: ROOM_ID });
|
||||||
|
|
||||||
// start with a logged-in client
|
// start with a logged-in client
|
||||||
peg.replaceUsingCreds({
|
localStorage.setItem("mx_hs_url", HS_URL );
|
||||||
homeserverUrl: HS_URL,
|
localStorage.setItem("mx_is_url", IS_URL );
|
||||||
identityServerUrl: IS_URL,
|
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
||||||
userId: USER_ID,
|
localStorage.setItem("mx_user_id", USER_ID);
|
||||||
accessToken: ACCESS_TOKEN,
|
|
||||||
guest: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
var mc = <MatrixChat config={{}}/>;
|
var mc = <MatrixChat config={{}}/>;
|
||||||
matrixChat = ReactDOM.render(mc, parentDiv);
|
matrixChat = ReactDOM.render(mc, parentDiv);
|
||||||
|
|
Loading…
Reference in New Issue