From c412a44339683f54257f0a1a60bc65c9a5bd2dd7 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Tue, 30 Jul 2024 01:01:26 -0400 Subject: [PATCH] Lint --- src/stores/widgets/StopGapWidgetDriver.ts | 5 +---- test/stores/widgets/StopGapWidgetDriver-test.ts | 4 +++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/stores/widgets/StopGapWidgetDriver.ts b/src/stores/widgets/StopGapWidgetDriver.ts index 14a5eb9620d5..c7fd36491ba7 100644 --- a/src/stores/widgets/StopGapWidgetDriver.ts +++ b/src/stores/widgets/StopGapWidgetDriver.ts @@ -412,10 +412,7 @@ export class StopGapWidgetDriver extends WidgetDriver { /** * @experimental Part of MSC4140 & MSC4157 */ - public async updateDelayedEvent( - delayId: string, - action: UpdateDelayedEventAction, - ): Promise { + public async updateDelayedEvent(delayId: string, action: UpdateDelayedEventAction): Promise { const client = MatrixClientPeg.get(); if (!client) throw new Error("Not in a room or not attached to a client"); diff --git a/test/stores/widgets/StopGapWidgetDriver-test.ts b/test/stores/widgets/StopGapWidgetDriver-test.ts index 4b534c94ae04..d1d38fc2b016 100644 --- a/test/stores/widgets/StopGapWidgetDriver-test.ts +++ b/test/stores/widgets/StopGapWidgetDriver-test.ts @@ -473,7 +473,9 @@ describe("StopGapWidgetDriver", () => { it("fails to update delayed events", async () => { const errorMessage = "Cannot restart this delayed event"; client._unstable_updateDelayedEvent.mockRejectedValue(new Error(errorMessage)); - await expect(driver.updateDelayedEvent("id", UpdateDelayedEventAction.Restart)).rejects.toThrow(errorMessage); + await expect(driver.updateDelayedEvent("id", UpdateDelayedEventAction.Restart)).rejects.toThrow( + errorMessage, + ); }); });