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

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 });
// 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);