Skip to content

Commit 243ac27

Browse files
committed
test: assert the prepared recording id reaches the start request
1 parent 1b86183 commit 243ac27

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/hooks/useScreenRecorder.nativeLinuxWebcamCursor.test.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,13 @@ describe("useScreenRecorder native Linux prepare", () => {
152152
expect(api.prepareNativeLinuxRecording).toHaveBeenCalledTimes(1);
153153

154154
await act(async () => {
155-
answerPicker({ success: true, recordingId: 7 });
155+
answerPicker({ success: true, recordingId: 42 });
156156
});
157157
await settle(3_500);
158158
expect(api.startNativeLinuxRecording).toHaveBeenCalledTimes(1);
159+
expect(api.startNativeLinuxRecording).toHaveBeenCalledWith(
160+
expect.objectContaining({ recordingId: 42 }),
161+
);
159162
expect(view.result.current.recording).toBe(true);
160163
});
161164
});

0 commit comments

Comments
 (0)