final lint?

This commit is contained in:
Half-Shot
2024-11-05 19:10:12 +00:00
parent d3870500d4
commit b4a126d466

View File

@@ -8,6 +8,7 @@ Please see LICENSE in the repository root for full details.
import { act, render } from "@testing-library/react"; import { act, render } from "@testing-library/react";
import { expect, test } from "vitest"; import { expect, test } from "vitest";
import { TooltipProvider } from "@vector-im/compound-web"; import { TooltipProvider } from "@vector-im/compound-web";
import { ReactNode } from "react";
import { import {
MockRoom, MockRoom,
@@ -16,7 +17,6 @@ import {
} from "../utils/testReactions"; } from "../utils/testReactions";
import { ReactionsAudioRenderer } from "./ReactionAudioRenderer"; import { ReactionsAudioRenderer } from "./ReactionAudioRenderer";
import { ReactionSet } from "../reactions"; import { ReactionSet } from "../reactions";
import { ReactNode } from "react";
const memberUserIdAlice = "@alice:example.org"; const memberUserIdAlice = "@alice:example.org";
const memberUserIdBob = "@bob:example.org"; const memberUserIdBob = "@bob:example.org";
@@ -66,9 +66,9 @@ test("will play an audio sound when there is a reaction", () => {
"No reactions have sounds configured, this test cannot succeed", "No reactions have sounds configured, this test cannot succeed",
); );
} }
act(() => act(() => {
room.testSendReaction(memberEventAlice, chosenReaction, membership), room.testSendReaction(memberEventAlice, chosenReaction, membership);
); });
const elements = container.getElementsByTagName("audio"); const elements = container.getElementsByTagName("audio");
expect(elements).toHaveLength(1); expect(elements).toHaveLength(1);
const audioElement = elements[0]; const audioElement = elements[0];