服务器录屏1
This commit is contained in:
@@ -104,6 +104,24 @@ describe('recording storage', () => {
|
||||
recordingId: 'recording-1',
|
||||
layout: 'grid',
|
||||
format: 'webm',
|
||||
host: {
|
||||
participantId: 'host-p',
|
||||
userId: 'host-user',
|
||||
id: 'host-user',
|
||||
name: 'Host User',
|
||||
avatar: '/uploads/host.png',
|
||||
role: 'host'
|
||||
},
|
||||
participants: [
|
||||
{
|
||||
participantId: 'p1',
|
||||
userId: 'participant-user',
|
||||
id: 'participant-user',
|
||||
name: 'Participant User',
|
||||
avatar: '/uploads/p1.png',
|
||||
role: 'participant'
|
||||
}
|
||||
],
|
||||
inputs: [
|
||||
{
|
||||
...target,
|
||||
@@ -127,5 +145,19 @@ describe('recording storage', () => {
|
||||
layout: 'grid',
|
||||
inputFiles: ['p1-video.webm']
|
||||
}));
|
||||
expect(metadata.host).toEqual(expect.objectContaining({
|
||||
participantId: 'host-p',
|
||||
userId: 'host-user',
|
||||
name: 'Host User',
|
||||
role: 'host'
|
||||
}));
|
||||
expect(metadata.participants).toEqual([
|
||||
expect.objectContaining({
|
||||
participantId: 'p1',
|
||||
userId: 'participant-user',
|
||||
name: 'Participant User',
|
||||
role: 'participant'
|
||||
})
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user