Skip to content

Commit c9ab977

Browse files
committed
Fix unit tests
ReplaceUsingAccessToken was, uh, replaced with replacedUsingCreds
1 parent a190862 commit c9ab977

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎test/app-tests/joining.js‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ describe('joining a room', function () {
8080
httpBackend.when('GET', '/directory/room/'+encodeURIComponent(ROOM_ALIAS)).respond(200, { room_id: ROOM_ID });
8181

8282
// start with a logged-in client
83-
peg.replaceUsingAccessToken(HS_URL, IS_URL, USER_ID, ACCESS_TOKEN);
83+
peg.replaceUsingCreds({
84+
homeserverUrl: HS_URL,
85+
identityServerUrl: IS_URL,
86+
userId: USER_ID,
87+
accessToken: ACCESS_TOKEN,
88+
guest: false,
89+
});
8490

8591
var mc = <MatrixChat config={{}}/>;
8692
matrixChat = ReactDOM.render(mc, parentDiv);

0 commit comments

Comments
 (0)