Skip to content

Commit de334cc

Browse files
author
Luke Barnard
committed
Expect to see HTTP /join/#some:alias when we the view knows it
1 parent 96e3c43 commit de334cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/app-tests/joining.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ describe('joining a room', function () {
158158

159159
ReactTestUtils.Simulate.click(joinLink);
160160

161-
httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ID))
161+
httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ALIAS))
162162
.respond(200, {room_id: ROOM_ID});
163163
}).then(() => {
164164
// wait for the join request to be made
@@ -180,7 +180,7 @@ describe('joining a room', function () {
180180
roomView, "mx_Spinner");
181181

182182
// flush it through
183-
return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ID));
183+
return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ALIAS));
184184
}).then(() => {
185185
httpBackend.verifyNoOutstandingExpectation();
186186

0 commit comments

Comments
 (0)