Skip to content

Commit

Permalink
Merge pull request #1929 from vector-im/dbkr/fix_unit_tests_replaceUs…
Browse files Browse the repository at this point in the history
…ingCreds

Fix unit tests
  • Loading branch information
richvdh authored Aug 5, 2016
2 parents 9962506 + c9ab977 commit c929076
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/app-tests/joining.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 config={{}}/>;
matrixChat = ReactDOM.render(mc, parentDiv);
Expand Down

0 comments on commit c929076

Please sign in to comment.