fix: use correct TestEachFunction
This commit is contained in:
@@ -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);
|
||||||
});
|
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user