1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Fix more tests

This commit is contained in:
Michael Telatynski
2019-12-17 11:47:01 +00:00
parent ab3fb6581b
commit e6d8487302
11 changed files with 42 additions and 884 deletions

View File

@ -16,7 +16,7 @@ describe('RoomViewStore', function() {
});
it('can be used to view a room by ID and join', function(done) {
peg.get().joinRoom = (roomAddress) => {
peg.get().joinRoom = async (roomAddress) => {
expect(roomAddress).toBe("!randomcharacters:aser.ver");
done();
};
@ -28,7 +28,7 @@ describe('RoomViewStore', function() {
it('can be used to view a room by alias and join', function(done) {
peg.get().getRoomIdForAlias.mockResolvedValue({room_id: "!randomcharacters:aser.ver"});
peg.get().joinRoom = (roomAddress) => {
peg.get().joinRoom = async (roomAddress) => {
expect(roomAddress).toBe("#somealias2:aser.ver");
done();
};