owncast/web/services/video-settings-service.mock.ts
Michael David Kuckuk b38df2fbe3
Create stories for layout testing (#2722)
* 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>
2023-02-26 16:54:28 -08:00

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;