()
| 1 | import * as Server from '../index' |
| 2 | |
| 3 | export const getRunningExpressApp = function () { |
| 4 | const runningExpressInstance = Server.getInstance() |
| 5 | if ( |
| 6 | typeof runningExpressInstance === 'undefined' || |
| 7 | typeof runningExpressInstance.nodesPool === 'undefined' || |
| 8 | typeof runningExpressInstance.telemetry === 'undefined' |
| 9 | ) { |
| 10 | throw new Error(`Error: getRunningExpressApp failed!`) |
| 11 | } |
| 12 | return runningExpressInstance |
| 13 | } |
no test coverage detected