From 69b18a95a0510359fc69449857ca0d9766100764 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Tue, 5 Nov 2024 19:02:22 +0000 Subject: [PATCH] lint --- src/room/ReactionAudioRenderer.test.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/room/ReactionAudioRenderer.test.tsx b/src/room/ReactionAudioRenderer.test.tsx index 6be08a5b..3f348130 100644 --- a/src/room/ReactionAudioRenderer.test.tsx +++ b/src/room/ReactionAudioRenderer.test.tsx @@ -16,6 +16,7 @@ import { } from "../utils/testReactions"; import { ReactionsAudioRenderer } from "./ReactionAudioRenderer"; import { ReactionSet } from "../reactions"; +import { ReactNode } from "react"; const memberUserIdAlice = "@alice:example.org"; const memberUserIdBob = "@bob:example.org"; @@ -30,7 +31,11 @@ const membership: Record = { [memberEventCharlie]: memberUserIdCharlie, }; -function TestComponent({ rtcSession }: { rtcSession: MockRTCSession }) { +function TestComponent({ + rtcSession, +}: { + rtcSession: MockRTCSession; +}): ReactNode { return ( @@ -40,7 +45,7 @@ function TestComponent({ rtcSession }: { rtcSession: MockRTCSession }) { ); } -test("defaults to no audio elements", async () => { +test("defaults to no audio elements", () => { const rtcSession = new MockRTCSession( new MockRoom(memberUserIdAlice), membership, @@ -49,7 +54,7 @@ test("defaults to no audio elements", async () => { expect(container.getElementsByTagName("audio")).toHaveLength(0); }); -test("will play an audio sound when there is a reaction", async () => { +test("will play an audio sound when there is a reaction", () => { const room = new MockRoom(memberUserIdAlice); const rtcSession = new MockRTCSession(room, membership); const { container } = render(); @@ -78,7 +83,7 @@ test("will play an audio sound when there is a reaction", async () => { expect(sources[1].src).toContain(chosenReaction.sound?.mp3); }); -test("will play multiple audio sounds when there are multiple different reactions", async () => { +test("will play multiple audio sounds when there are multiple different reactions", () => { const room = new MockRoom(memberUserIdAlice); const rtcSession = new MockRTCSession(room, membership); const { container } = render();