1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00

Revert "Revert "Move redaction event tests into their own describe block""

This reverts commit 2e24481df3.
This commit is contained in:
Andy Balaam
2023-11-07 13:44:44 +00:00
parent 8b2a334ac4
commit a3762c8e22

View File

@ -70,6 +70,7 @@ describe("MatrixEvent", () => {
expect(a.toSnapshot().isEquivalentTo(b)).toBe(false);
});
describe("redaction", () => {
it("should prune clearEvent when being redacted", () => {
const ev = new MatrixEvent({
type: "m.room.message",
@ -177,6 +178,7 @@ describe("MatrixEvent", () => {
expect(mainTimelineLiveEventIds(room)).toEqual(["$threadroot:server", "$event1:server"]);
expect(threadLiveEventIds(room, 0)).not.toContain("$event1:server");
});
});
describe("applyVisibilityEvent", () => {
it("should emit VisibilityChange if a change was made", async () => {