1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2024-12-18 23:32:51 +03:00
owncast/web/services/video-settings-service.mock.ts
Michael David Kuckuk b38df2fbe3
Create stories for layout testing ()
* 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;