()
| 292 | } |
| 293 | |
| 294 | async function runTest() { |
| 295 | const child = new NodeInstance(); |
| 296 | checkListResponse(await child.httpGet(null, '/json')); |
| 297 | checkListResponse(await child.httpGet(null, '/json/list')); |
| 298 | checkVersion(await child.httpGet(null, '/json/version')); |
| 299 | |
| 300 | await child.httpGet(null, '/json/activate').catch(checkBadPath); |
| 301 | await child.httpGet(null, '/json/activate/boom').catch(checkBadPath); |
| 302 | await child.httpGet(null, '/json/badpath').catch(checkBadPath); |
| 303 | |
| 304 | const session = await child.connectInspectorSession(); |
| 305 | await testBreakpointOnStart(session); |
| 306 | await testBreakpoint(session); |
| 307 | await testI18NCharacters(session); |
| 308 | await testCommandLineAPI(session); |
| 309 | await session.runToCompletion(); |
| 310 | const expectedExitCode = 55; |
| 311 | const { exitCode } = await child.expectShutdown(); |
| 312 | assert.strictEqual( |
| 313 | exitCode, |
| 314 | expectedExitCode, |
| 315 | `Expected exit code to be ${expectedExitCode} but got ${expectedExitCode}.` |
| 316 | ); |
| 317 | } |
| 318 | |
| 319 | runTest().then(common.mustCall()); |
no test coverage detected
searching dependent graphs…