owncast/web/services/client-config-service.mock.ts

12 lines
400 B
TypeScript
Raw Normal View History

import { ClientConfig } from '../interfaces/client-config.model';
import { ClientConfigStaticService } from './client-config-service';
export const clientConfigServiceMockOf = (config: ClientConfig): ClientConfigStaticService =>
class ClientConfigServiceMock {
public static async getConfig(): Promise<ClientConfig> {
return config;
}
};
export default clientConfigServiceMockOf;