(platform: string)
| 20 | |
| 21 | |
| 22 | function createUnsupportedManager(platform: string): ServiceManager { |
| 23 | const fail = (): never => { |
| 24 | throw new ServiceUnsupportedError(platform); |
| 25 | }; |
| 26 | return { |
| 27 | install: async () => fail(), |
| 28 | uninstall: async () => fail(), |
| 29 | start: async () => fail(), |
| 30 | stop: async () => fail(), |
| 31 | restart: async () => fail(), |
| 32 | status: async () => fail(), |
| 33 | }; |
| 34 | } |
no test coverage detected