Fix jest/valid-expects lints (#11238)

This commit is contained in:
Michael Telatynski 2023-07-13 16:19:44 +01:00 committed by GitHub
parent d7d60a3255
commit f5f31eb7d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 26 deletions

View file

@ -66,7 +66,7 @@ describe("DevtoolsDialog", () => {
expect(copiedBtn).toBeInTheDocument();
expect(navigator.clipboard.writeText).toHaveBeenCalled();
expect(navigator.clipboard.readText()).resolves.toBe(room.roomId);
await expect(navigator.clipboard.readText()).resolves.toBe(room.roomId);
});
it("copies the thread root id when provided", async () => {
@ -82,6 +82,6 @@ describe("DevtoolsDialog", () => {
expect(copiedBtn).toBeInTheDocument();
expect(navigator.clipboard.writeText).toHaveBeenCalled();
expect(navigator.clipboard.readText()).resolves.toBe(threadRootId);
await expect(navigator.clipboard.readText()).resolves.toBe(threadRootId);
});
});