(config: MockConnectorConfig)
| 63 | } |
| 64 | |
| 65 | export function createMockConnectorState(config: MockConnectorConfig): MockConnectorStateData { |
| 66 | return { |
| 67 | config: { |
| 68 | port: 31415, |
| 69 | avatar: null, |
| 70 | ...config, |
| 71 | }, |
| 72 | connected: false, |
| 73 | connectedAt: null, |
| 74 | orgs: {}, |
| 75 | packages: {}, |
| 76 | userPackages: {}, |
| 77 | userOrgs: [], |
| 78 | operations: [], |
| 79 | operationIdCounter: 0, |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Mock connector state, shared between the HTTP server and composable mock. |
no outgoing calls