服务器录屏1

This commit is contained in:
2026-06-02 02:49:47 +08:00
parent 66d6f92d1e
commit 59fc4be5cc
7 changed files with 248 additions and 27 deletions

View File

@@ -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'
})
]);
});
});