mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: replace anonymous function with arrow
PR-URL: https://github.com/nodejs/node/pull/24527 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
1 parent
6b88541fe2
commit
39adfc8d48
1 file changed
+2
-2
@@ -35,14 +35,14 @@ const options = {
|
||||
ca: [ fixtures.readKey('ca2-cert.pem') ]
|
||||
};
|
||||
|
||||
const server = tls.createServer(options, function(cleartext) {
|
||||
const server = tls.createServer(options, (cleartext) => {
|
||||
cleartext.end('World');
|
||||
});
|
||||
server.listen(0, common.mustCall(function() {
|
||||
const socket = tls.connect({
|
||||
port: this.address().port,
|
||||
rejectUnauthorized: false
|
||||
}, common.mustCall(function() {
|
||||
}, common.mustCall(() => {
|
||||
const peerCert = socket.getPeerCertificate();
|
||||
|
||||
console.error(util.inspect(peerCert));
|
||||
|
||||
Reference in new issue
Block a user