Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Test for MatrixToPermalinkConstructor.forRoom
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Mar 30, 2023
1 parent 954198f commit 24da609
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/utils/permalinks/MatrixToPermalinkConstructor-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,12 @@ describe("MatrixToPermalinkConstructor", () => {
);
});
});

describe("forRoom", () => {
it("constructs a link given a room ID and via servers", () => {
expect(peramlinkConstructor.forRoom("!myroom:example.com", ["one.example.com", "two.example.com"])).toEqual(
"https://matrix.to/#/!myroom:example.com?via=one.example.com&via=two.example.com",
);
});
});
});

0 comments on commit 24da609

Please sign in to comment.