Use doMaybeLocalRoomAction (#9038)
* Use doMaybeLocalRoomAction * Revert unnecessary changes
This commit is contained in:
parent
9b8b8763f7
commit
3be20cf434
12 changed files with 333 additions and 22 deletions
|
@ -28,8 +28,8 @@ describe("MatrixClientPeg", () => {
|
|||
it("setJustRegisteredUserId", () => {
|
||||
stubClient();
|
||||
(peg as any).matrixClient = peg.get();
|
||||
peg.setJustRegisteredUserId("@userId:matrix.rog");
|
||||
expect(peg.get().credentials.userId).toBe("@userId:matrix.rog");
|
||||
peg.setJustRegisteredUserId("@userId:matrix.org");
|
||||
expect(peg.get().credentials.userId).toBe("@userId:matrix.org");
|
||||
expect(peg.currentUserIsJustRegistered()).toBe(true);
|
||||
expect(peg.userRegisteredWithinLastHours(0)).toBe(false);
|
||||
expect(peg.userRegisteredWithinLastHours(1)).toBe(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue