mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-18 18:59:23 +00:00
review
This commit is contained in:
@@ -59,16 +59,6 @@ it("should render for member", () => {
|
|||||||
expect(queryAllByTestId("audio")).toHaveLength(1);
|
expect(queryAllByTestId("audio")).toHaveLength(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should not render without member", () => {
|
|
||||||
const { container, queryAllByTestId } = render(
|
|
||||||
<MatrixAudioRenderer
|
|
||||||
members={[{ sender: "othermember", deviceId: "123" }] as CallMembership[]}
|
|
||||||
/>,
|
|
||||||
);
|
|
||||||
expect(container).toBeTruthy();
|
|
||||||
expect(queryAllByTestId("audio")).toHaveLength(0);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("should not render without member", () => {
|
it("should not render without member", () => {
|
||||||
const memberships = [
|
const memberships = [
|
||||||
{ sender: "othermember", deviceId: "123" },
|
{ sender: "othermember", deviceId: "123" },
|
||||||
@@ -78,7 +68,6 @@ it("should not render without member", () => {
|
|||||||
);
|
);
|
||||||
expect(container).toBeTruthy();
|
expect(container).toBeTruthy();
|
||||||
expect(queryAllByTestId("audio")).toHaveLength(0);
|
expect(queryAllByTestId("audio")).toHaveLength(0);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should not setup audioContext gain and pan if there is no need to.", () => {
|
it("should not setup audioContext gain and pan if there is no need to.", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user