-
-
Notifications
You must be signed in to change notification settings - Fork 676
Prepare for jest->vitest #5137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare for jest->vitest #5137
Changes from all commits
ec01847
c2f2421
711eef0
8b00d8f
69dbad7
2f16d86
0390968
e9ac3a8
dca403d
93004d6
95b2303
eea6a5b
e77cfe3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -159,7 +159,7 @@ describe("MatrixEvent", () => { | |
|
|
||
| // Then it disappears from the thread and appears in the main timeline | ||
| expect(ev.threadRootId).toBeUndefined(); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([threadRoot.getId(), ev.getId()]); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([threadRoot.getId(), ev.getId(), redaction.getId()]); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is strange.. Isn't it more that Maybe these test could use things like
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, redaction before this PR had an
|
||
| expect(threadLiveEventIds(room, 0)).not.toContain(ev.getId()); | ||
| }); | ||
|
|
||
|
|
@@ -183,7 +183,12 @@ describe("MatrixEvent", () => { | |
|
|
||
| // Then the reaction moves into the main timeline | ||
| expect(reaction.threadRootId).toBeUndefined(); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([threadRoot.getId(), ev.getId(), reaction.getId()]); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([ | ||
| threadRoot.getId(), | ||
| ev.getId(), | ||
| reaction.getId(), | ||
| redaction.getId(), | ||
| ]); | ||
| expect(threadLiveEventIds(room, 0)).not.toContain(reaction.getId()); | ||
| }); | ||
|
|
||
|
|
@@ -207,7 +212,12 @@ describe("MatrixEvent", () => { | |
|
|
||
| // Then the edit moves into the main timeline | ||
| expect(edit.threadRootId).toBeUndefined(); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([threadRoot.getId(), ev.getId(), edit.getId()]); | ||
| expect(mainTimelineLiveEventIds(room)).toEqual([ | ||
| threadRoot.getId(), | ||
| ev.getId(), | ||
| edit.getId(), | ||
| redaction.getId(), | ||
| ]); | ||
| expect(threadLiveEventIds(room, 0)).not.toContain(edit.getId()); | ||
| }); | ||
|
|
||
|
|
@@ -245,6 +255,7 @@ describe("MatrixEvent", () => { | |
| reply1.getId(), | ||
| reply2.getId(), | ||
| reaction.getId(), | ||
| redaction.getId(), | ||
| ]); | ||
| expect(threadLiveEventIds(room, 0)).not.toContain(reply1.getId()); | ||
| expect(threadLiveEventIds(room, 0)).not.toContain(reply2.getId()); | ||
|
|
@@ -330,6 +341,7 @@ describe("MatrixEvent", () => { | |
|
|
||
| function createRedaction(redactedEventid: string): MatrixEvent { | ||
| return new MatrixEvent({ | ||
| event_id: `$redact-${redactedEventid}`, | ||
| type: "m.room.redaction", | ||
| redacts: redactedEventid, | ||
| }); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.