mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge pull request #4252 from vector-im/luke/fix-joining-test
Expect to see HTTP /join/#some:alias when we the view knows it
This commit is contained in:
commit
f2b89acfec
@ -158,7 +158,7 @@ describe('joining a room', function () {
|
|||||||
|
|
||||||
ReactTestUtils.Simulate.click(joinLink);
|
ReactTestUtils.Simulate.click(joinLink);
|
||||||
|
|
||||||
httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ID))
|
httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ALIAS))
|
||||||
.respond(200, {room_id: ROOM_ID});
|
.respond(200, {room_id: ROOM_ID});
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// wait for the join request to be made
|
// wait for the join request to be made
|
||||||
@ -180,7 +180,7 @@ describe('joining a room', function () {
|
|||||||
roomView, "mx_Spinner");
|
roomView, "mx_Spinner");
|
||||||
|
|
||||||
// flush it through
|
// flush it through
|
||||||
return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ID));
|
return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ALIAS));
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
httpBackend.verifyNoOutstandingExpectation();
|
httpBackend.verifyNoOutstandingExpectation();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user