mirror of
https://github.com/owncast/owncast.git
synced 2024-11-27 17:59:21 +03:00
b38df2fbe3
* 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>
11 lines
400 B
TypeScript
11 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;
|