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:
Richard van der Hoff 2016-08-10 22:39:53 +01:00
parent b742342062
commit dd6868c255
1 changed files with 8 additions and 11 deletions

View File

@ -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);