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

@ -74,7 +74,8 @@ describe("AutoRageshakeStore", () => {
});
it("should send a rageshake", () => {
expect(mocked(client).sendToDevice.mock.calls).toMatchInlineSnapshot(`
expect(mocked(client).sendToDevice.mock.calls).toMatchInlineSnapshot(
`
[
[
"im.vector.auto_rs_request",
@ -82,7 +83,7 @@ describe("AutoRageshakeStore", () => {
"@userId:matrix.org": {
"undefined": {
"device_id": undefined,
"event_id": "${utdEvent.getId()}",
"event_id": "utd_event_id",
"recipient_rageshake": undefined,
"room_id": "!room:example.com",
"sender_key": undefined,
@ -93,7 +94,8 @@ describe("AutoRageshakeStore", () => {
},
],
]
`);
`.replace("utd_event_id", utdEvent.getId()!),
);
});
});
});