mirror of
https://github.com/owncast/owncast.git
synced 2024-11-22 21:03:19 +03:00
12 lines
400 B
TypeScript
12 lines
400 B
TypeScript
|
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;
|