mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: use shorthand properties
PR-URL: https://github.com/nodejs/node/pull/18105 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
@@ -51,10 +51,7 @@ function createServer() {
|
||||
port: port,
|
||||
host: host,
|
||||
rejectUnauthorized: false,
|
||||
_agentKey: agent.getName({
|
||||
port: port,
|
||||
host: host,
|
||||
}),
|
||||
_agentKey: agent.getName({ port, host })
|
||||
};
|
||||
|
||||
const socket = agent.createConnection(options);
|
||||
@@ -70,10 +67,7 @@ function createServer() {
|
||||
const host = 'localhost';
|
||||
const options = {
|
||||
rejectUnauthorized: false,
|
||||
_agentKey: agent.getName({
|
||||
port: port,
|
||||
host: host,
|
||||
}),
|
||||
_agentKey: agent.getName({ port, host })
|
||||
};
|
||||
const socket = agent.createConnection(port, options);
|
||||
checkRequest(socket, server);
|
||||
@@ -88,10 +82,7 @@ function createServer() {
|
||||
const host = 'localhost';
|
||||
const options = {
|
||||
rejectUnauthorized: false,
|
||||
_agentKey: agent.getName({
|
||||
port: port,
|
||||
host: host,
|
||||
}),
|
||||
_agentKey: agent.getName({ port, host })
|
||||
};
|
||||
const socket = agent.createConnection(port, host, options);
|
||||
checkRequest(socket, server);
|
||||
|
||||
Reference in New Issue
Block a user