test: Update validation in expectValidGetRecordingResponse for recordingId and roomId types
This commit is contained in:
parent
b878fcf163
commit
116a41e428
@ -235,12 +235,15 @@ export const expectValidGetRecordingResponse = (
|
|||||||
status === MeetRecordingStatus.LIMIT_REACHED);
|
status === MeetRecordingStatus.LIMIT_REACHED);
|
||||||
expect(body).toEqual(
|
expect(body).toEqual(
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
|
recordingId: expect.stringMatching(new RegExp(`^${recordingId}$`)),
|
||||||
|
roomId: expect.stringMatching(new RegExp(`^${roomId}$`)),
|
||||||
|
...(isRecFinished ? { status: expect.any(String) } : {}),
|
||||||
...(isRecFinished ? { duration: expect.any(Number) } : {}),
|
...(isRecFinished ? { duration: expect.any(Number) } : {}),
|
||||||
...(isRecFinished ? { startDate: expect.any(Number) } : {}),
|
...(isRecFinished ? { startDate: expect.any(Number) } : {}),
|
||||||
...(isRecFinished ? { endDate: expect.any(Number) } : {}),
|
...(isRecFinished ? { endDate: expect.any(Number) } : {}),
|
||||||
...(isRecFinished ? { size: expect.any(Number) } : {}),
|
...(isRecFinished ? { size: expect.any(Number) } : {}),
|
||||||
filename: expect.any(String),
|
filename: expect.any(String),
|
||||||
...(isRecFinished ? { details: expect.any(Number) } : {})
|
...(isRecFinished ? { details: expect.any(String) } : {})
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user