mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
final lint?
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user