diff options
Diffstat (limited to 'test/inspector/test-inspector.js')
-rw-r--r-- | test/inspector/test-inspector.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/inspector/test-inspector.js b/test/inspector/test-inspector.js index 19eb3601f0..313fba9bd9 100644 --- a/test/inspector/test-inspector.js +++ b/test/inspector/test-inspector.js @@ -13,8 +13,8 @@ function checkListResponse(err, response) { assert.strictEqual(1, response.length); assert.ok(response[0]['devtoolsFrontendUrl']); assert.ok( - response[0]['webSocketDebuggerUrl'] - .match(/ws:\/\/127\.0\.0\.1:\d+\/[0-9A-Fa-f]{8}-/)); + /ws:\/\/127\.0\.0\.1:\d+\/[0-9A-Fa-f]{8}-/ + .test(response[0]['webSocketDebuggerUrl'])); } function checkVersion(err, response) { |