mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 17:59:21 +03:00
b38df2fbe3
* Inject services with useContext * Extract service for video settings * Create mock factories for services * Create test data for chat history * Add story to visualize different layouts * Fix renaming mistake * Add landscape and portrait viewports * Add landscape stories --------- Co-authored-by: Gabe Kangas <gabek@real-ity.com>
12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import { VideoSettingsStaticService, VideoQuality } from './video-settings-service';
|
|
|
|
export const videoSettingsServiceMockOf = (
|
|
videoQualities: Array<VideoQuality>,
|
|
): VideoSettingsStaticService =>
|
|
class VideoSettingsServiceMock {
|
|
public static async getVideoQualities(): Promise<Array<VideoQuality>> {
|
|
return videoQualities;
|
|
}
|
|
};
|
|
|
|
export default videoSettingsServiceMockOf;
|