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.forEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
andybalaam committed Mar 30, 2023
1 parent 24da609 commit a6c4f4c
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 @@ -49,4 +49,12 @@ describe("MatrixToPermalinkConstructor", () => {
);
});
});

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

0 comments on commit a6c4f4c

Please sign in to comment.