From c9ab977d736c64c43e1580283ae219759bcf833a Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 5 Aug 2016 14:38:10 +0100 Subject: [PATCH] Fix unit tests ReplaceUsingAccessToken was, uh, replaced with replacedUsingCreds --- test/app-tests/joining.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index 37a3e9e65..6580161b9 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -80,7 +80,13 @@ 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.replaceUsingAccessToken(HS_URL, IS_URL, USER_ID, ACCESS_TOKEN); + peg.replaceUsingCreds({ + homeserverUrl: HS_URL, + identityServerUrl: IS_URL, + userId: USER_ID, + accessToken: ACCESS_TOKEN, + guest: false, + }); var mc = ; matrixChat = ReactDOM.render(mc, parentDiv);