owncast/web/services/video-settings-service.mock.ts

13 lines
397 B
TypeScript
Raw Normal View History

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;