mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-23 23:52:51 +00:00
fix: use correct TestEachFunction
This commit is contained in:
1 parent
85ffe68d98
commit
4c6b960da3
1 file changed
+8
-9
@@ -152,15 +152,14 @@ const TEST_CASES: {
|
||||
},
|
||||
];
|
||||
|
||||
TEST_CASES.forEach(
|
||||
({ rtcUsers, livekitParticipantIdentities, expectedAudioTracks }, index) => {
|
||||
it(`should render sound test cases #${index + 1}`, () => {
|
||||
const { queryAllByTestId } = renderTestComponent(
|
||||
rtcUsers,
|
||||
livekitParticipantIdentities,
|
||||
);
|
||||
expect(queryAllByTestId("audio")).toHaveLength(expectedAudioTracks);
|
||||
});
|
||||
it.each(TEST_CASES)(
|
||||
`should render sound test cases %s`,
|
||||
({ rtcUsers, livekitParticipantIdentities, expectedAudioTracks }) => {
|
||||
const { queryAllByTestId } = renderTestComponent(
|
||||
rtcUsers,
|
||||
livekitParticipantIdentities,
|
||||
);
|
||||
expect(queryAllByTestId("audio")).toHaveLength(expectedAudioTracks);
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user