fix: use correct TestEachFunction

This commit is contained in:
Valere
2025-10-09 11:00:45 +02:00
parent 85ffe68d98
commit 4c6b960da3

View File

@@ -152,15 +152,14 @@ const TEST_CASES: {
}, },
]; ];
TEST_CASES.forEach( it.each(TEST_CASES)(
({ rtcUsers, livekitParticipantIdentities, expectedAudioTracks }, index) => { `should render sound test cases %s`,
it(`should render sound test cases #${index + 1}`, () => { ({ rtcUsers, livekitParticipantIdentities, expectedAudioTracks }) => {
const { queryAllByTestId } = renderTestComponent( const { queryAllByTestId } = renderTestComponent(
rtcUsers, rtcUsers,
livekitParticipantIdentities, livekitParticipantIdentities,
); );
expect(queryAllByTestId("audio")).toHaveLength(expectedAudioTracks); expect(queryAllByTestId("audio")).toHaveLength(expectedAudioTracks);
});
}, },
); );