Skip to content

Commit 89ff183

Browse files
squash: fix more existing errors
1 parent 3d4d0f4 commit 89ff183

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

test/inspector/inspector-helper.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ function checkHttpResponse(port, path, callback) {
7777
http.get({port, path}, function(res) {
7878
let response = '';
7979
res.setEncoding('utf8');
80-
res.
81-
on('data', (data) => response += data.toString()).
82-
on('end', () => callback(JSON.parse(response)));
80+
res
81+
.on('data', (data) => response += data.toString())
82+
.on('end', () => callback(JSON.parse(response)));
8383
});
8484
}
8585

test/inspector/test-inspector.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ function testBreakpointOnStart(session) {
8585
{ 'method': 'Runtime.runIfWaitingForDebugger' }
8686
];
8787

88-
session.
89-
sendInspectorCommands(commands).
90-
expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session));
88+
session
89+
.sendInspectorCommands(commands)
90+
.expectMessages(setupExpectBreakOnLine(0, session.mainScriptPath, session));
9191
}
9292

9393
function testSetBreakpointAndResume(session) {
@@ -105,9 +105,9 @@ function testSetBreakpointAndResume(session) {
105105
'params': { 'scriptId': session.mainScriptId } },
106106
expectMainScriptSource ],
107107
];
108-
session.
109-
sendInspectorCommands(commands).
110-
expectMessages([
108+
session
109+
.sendInspectorCommands(commands)
110+
.expectMessages([
111111
setupExpectConsoleOutput('log', ['A message', 5]),
112112
setupExpectBreakOnLine(5, session.mainScriptPath,
113113
session, (id) => scopeId = id),
@@ -131,7 +131,7 @@ function testInspectScope(session) {
131131
[
132132
{
133133
'method': 'Debugger.evaluateOnCallFrame', 'params': {
134-
'callFrameId': '{\"ordinal\":0,\"injectedScriptId\":1}',
134+
'callFrameId': '{"ordinal":0,"injectedScriptId":1}',
135135
'expression': 'k + t',
136136
'objectGroup': 'console',
137137
'includeCommandLineAPI': true,
@@ -153,9 +153,9 @@ function testInspectScope(session) {
153153

154154
function testWaitsForFrontendDisconnect(session, harness) {
155155
console.log('[test]', 'Verify node waits for the frontend to disconnect');
156-
session.sendInspectorCommands({ 'method': 'Debugger.resume'}).
157-
expectStderrOutput('Waiting for the debugger to disconnect...').
158-
disconnect(true);
156+
session.sendInspectorCommands({ 'method': 'Debugger.resume'})
157+
.expectStderrOutput('Waiting for the debugger to disconnect...')
158+
.disconnect(true);
159159
}
160160

161161
function runTests(harness) {

0 commit comments

Comments
 (0)