From de334cccfda4e9ff194282e55e83f76b0680b923 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 8 Jun 2017 18:01:55 +0100 Subject: [PATCH] Expect to see HTTP /join/#some:alias when we the view knows it --- test/app-tests/joining.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index 24a4ceed..e835ebb9 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -158,7 +158,7 @@ describe('joining a room', function () { ReactTestUtils.Simulate.click(joinLink); - httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ID)) + httpBackend.when('POST', '/join/'+encodeURIComponent(ROOM_ALIAS)) .respond(200, {room_id: ROOM_ID}); }).then(() => { // wait for the join request to be made @@ -180,7 +180,7 @@ describe('joining a room', function () { roomView, "mx_Spinner"); // flush it through - return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ID)); + return httpBackend.flush('/join/'+encodeURIComponent(ROOM_ALIAS)); }).then(() => { httpBackend.verifyNoOutstandingExpectation();