diff --git a/test/utils/permalinks/MatrixToPermalinkConstructor-test.ts b/test/utils/permalinks/MatrixToPermalinkConstructor-test.ts index e8750114136..7a4fa5a60b7 100644 --- a/test/utils/permalinks/MatrixToPermalinkConstructor-test.ts +++ b/test/utils/permalinks/MatrixToPermalinkConstructor-test.ts @@ -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", + ); + }); + }); });