Skip to content

Commit

Permalink
fix code style by lint-js
Browse files Browse the repository at this point in the history
  • Loading branch information
KuthorX authored and aduh95 committed Sep 19, 2023
1 parent 915b724 commit 2b0301f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-http-client-input-function.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ClientRequest = require('http').ClientRequest;
const req = new ClientRequest(() => {});
req.on('error', common.mustCall((err) => {
assert.strictEqual(err.code, 'ECONNREFUSED');
}))
}));
assert.strictEqual(req.path, '/');
assert.strictEqual(req.method, 'GET');
}
6 changes: 3 additions & 3 deletions test/parallel/test-http-client-insecure-http-parser-error.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
'use strict';

const common = require('../common');
require('../common');
const assert = require('assert');
const ClientRequest = require('http').ClientRequest;

{
assert.throws(() => {
new ClientRequest({insecureHTTPParser: 'wrongValue'});
new ClientRequest({ insecureHTTPParser: 'wrongValue' });
}, {
code: /ERR_INVALID_ARG_TYPE/
}, 'http request should throw when passing not-boolean value as insecureHTTPParser');
}, 'http request should throw when passing invalid insecureHTTPParser');
}

0 comments on commit 2b0301f

Please sign in to comment.