Add ESLint Jest (#10261)

This commit is contained in:
Michael Weimann 2023-03-01 16:23:35 +01:00 committed by GitHub
parent db7748b743
commit 5398db21ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
55 changed files with 336 additions and 351 deletions

View file

@ -151,7 +151,7 @@ describe("StopGapWidgetDriver", () => {
state: OpenIDRequestState.Allowed,
token: await client.getOpenIdToken(),
};
expect(listener).toBeCalledWith(openIdUpdate);
expect(listener).toHaveBeenCalledWith(openIdUpdate);
});
describe("sendToDevice", () => {
@ -276,7 +276,7 @@ describe("StopGapWidgetDriver", () => {
prevBatch: undefined,
});
expect(client.relations).toBeCalledWith("!this-room-id", "$event", null, null, {});
expect(client.relations).toHaveBeenCalledWith("!this-room-id", "$event", null, null, {});
});
it("reads related events from a selected room", async () => {
@ -292,7 +292,7 @@ describe("StopGapWidgetDriver", () => {
prevBatch: undefined,
});
expect(client.relations).toBeCalledWith("!room-id", "$event", null, null, {});
expect(client.relations).toHaveBeenCalledWith("!room-id", "$event", null, null, {});
});
it("reads related events with custom parameters", async () => {
@ -318,7 +318,7 @@ describe("StopGapWidgetDriver", () => {
prevBatch: undefined,
});
expect(client.relations).toBeCalledWith("!room-id", "$event", "m.reference", "m.room.message", {
expect(client.relations).toHaveBeenCalledWith("!room-id", "$event", "m.reference", "m.room.message", {
limit: 25,
from: "from-token",
to: "to-token",