(response)
| 21 | } |
| 22 | |
| 23 | function checkVersion(response) { |
| 24 | assert.ok(response); |
| 25 | const expected = { |
| 26 | 'Browser': `node.js/${process.version}`, |
| 27 | 'Protocol-Version': '1.1', |
| 28 | }; |
| 29 | assert.strictEqual(JSON.stringify(response), |
| 30 | JSON.stringify(expected)); |
| 31 | } |
| 32 | |
| 33 | function checkBadPath(err) { |
| 34 | assert(err instanceof SyntaxError); |