Add mock data and unit tests for Channels and Members APIs

This commit is contained in:
2025-12-07 04:41:41 -05:00
parent 4673547b95
commit 58a938d0e7
12 changed files with 1377 additions and 0 deletions

11
test/mocks/Channel.ts Normal file
View File

@@ -0,0 +1,11 @@
export const mockChannel = {
channelId: 'some-region#some-application-id#some-channel-name.s3bS4Udv1y5G',
alias: 'some-channel-name',
name: 'some-channel-name',
description: 'some-channel-description',
type: 'default',
options: [],
streamKey: '2GKJt4TP9vrJuHFhJNRm5lUJ1tGHW5LUXWWGlvz1L7S9PHVFGql82sOPI1AxbDQUeGZALVG3DuJAs63IC7agZEyljEIPM1a3b4',
created: '2024-01-01',
lastUpdated: '2024-01-01'
};

15
test/mocks/Member.ts Normal file
View File

@@ -0,0 +1,15 @@
export const mockMember = {
sessionId: 'session-123',
screenName: 'Test User',
role: 'Presenter',
streams: [
{
type: 'video',
uri: 'pcast://example.com/stream-id-123',
audioState: 'active',
videoState: 'active'
}
],
state: 'active',
lastUpdate: Date.now()
};