From 7ea173384e05ab6fa7fd639d5e691db037bcb385 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 14 Nov 2024 20:23:42 +0100 Subject: [PATCH] Appease the linter --- frontend/tests/routes/account/index.test.tsx | 2 +- frontend/tests/routes/reset-cross-signing.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/tests/routes/account/index.test.tsx b/frontend/tests/routes/account/index.test.tsx index a960fa126..7d14c17da 100644 --- a/frontend/tests/routes/account/index.test.tsx +++ b/frontend/tests/routes/account/index.test.tsx @@ -21,7 +21,7 @@ describe("Account home page", () => { describe("display name edit box", () => { it("lets edit the display name", async () => { // TODO: a better way to wait on delays - let advance: () => void; + let advance: () => void = () => {}; const wait = new Promise((resolve) => { advance = () => resolve(void 0); }); diff --git a/frontend/tests/routes/reset-cross-signing.test.tsx b/frontend/tests/routes/reset-cross-signing.test.tsx index 9477388bf..1837b03fe 100644 --- a/frontend/tests/routes/reset-cross-signing.test.tsx +++ b/frontend/tests/routes/reset-cross-signing.test.tsx @@ -34,7 +34,7 @@ describe("Reset cross signing", () => { it("calls the callback on success", async () => { // TODO: a better way to wait on delays - let advance: () => void; + let advance: () => void = () => {}; const wait = new Promise((resolve) => { advance = () => resolve(void 0); });