mirror of
https://github.com/owncast/owncast.git
synced 2024-12-18 07:12:33 +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;
|