Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Oct 13, 2020
1 parent 60a1e12 commit 74c6182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integ/invite-rooms.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ describe("Invite-only rooms", function() {
let adminRoomId = "!adminroom:id";
let sdk = env.clientMock._client(botUserId);
let joinRoomCount = 0;
sdk.joinRoom.and.callFake(function(roomId) {
sdk.joinRoom.and.callFake(async (roomId) => {
expect(roomId).toEqual(adminRoomId);
joinRoomCount += 1;
return Promise.resolve({});
return {room_id: roomId};
});

env.mockAppService._trigger("type:m.room.member", {
Expand Down

0 comments on commit 74c6182

Please sign in to comment.