( override: Partial<PluginMetadata> )
| 21 | import {CoreState, CORE_FEATURE_KEY, State} from '../store/core_types'; |
| 22 | |
| 23 | export function buildPluginMetadata( |
| 24 | override: Partial<PluginMetadata> |
| 25 | ): PluginMetadata { |
| 26 | return { |
| 27 | disable_reload: false, |
| 28 | enabled: true, |
| 29 | loading_mechanism: { |
| 30 | type: LoadingMechanismType.NONE, |
| 31 | }, |
| 32 | tab_name: 'foo', |
| 33 | remove_dom: false, |
| 34 | ...override, |
| 35 | }; |
| 36 | } |
| 37 | |
| 38 | export function createPluginMetadata(displayName: string): PluginMetadata { |
| 39 | return buildPluginMetadata({ |
no outgoing calls
no test coverage detected
searching dependent graphs…