(response)
| 7 | const { NodeInstance } = require('../common/inspector-helper.js'); |
| 8 | |
| 9 | function checkListResponse(response) { |
| 10 | const expectedLength = 1; |
| 11 | assert.strictEqual( |
| 12 | response.length, |
| 13 | expectedLength, |
| 14 | `Expected response length ${response.length} to be ${expectedLength}.` |
| 15 | ); |
| 16 | assert.ok(response[0].devtoolsFrontendUrl); |
| 17 | assert.match( |
| 18 | response[0].webSocketDebuggerUrl, |
| 19 | /ws:\/\/localhost:\d+\/[0-9A-Fa-f]{8}-/, |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | function checkVersion(response) { |
| 24 | assert.ok(response); |