summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-peer-certificate-encoding.js
diff options
context:
space:
mode:
authorGagandeep Singh <codegagan@gmail.com>2018-11-21 00:17:42 +0530
committerGireesh Punathil <gpunathi@in.ibm.com>2018-11-23 12:38:52 +0530
commitccd1ed9e9199eabdb136908a7676d6eb26198a70 (patch)
tree3b767a6ae3d0c65bb4222d5832ba321b96b4ee56 /test/parallel/test-tls-peer-certificate-encoding.js
parentfcbff6045e8474c31d6f4ffa23187a0334ec8468 (diff)
downloadandroid-node-v8-ccd1ed9e9199eabdb136908a7676d6eb26198a70.tar.gz
android-node-v8-ccd1ed9e9199eabdb136908a7676d6eb26198a70.tar.bz2
android-node-v8-ccd1ed9e9199eabdb136908a7676d6eb26198a70.zip
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>
Diffstat (limited to 'test/parallel/test-tls-peer-certificate-encoding.js')
-rw-r--r--test/parallel/test-tls-peer-certificate-encoding.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-peer-certificate-encoding.js b/test/parallel/test-tls-peer-certificate-encoding.js
index 19c7cde42c..154c31c0a1 100644
--- a/test/parallel/test-tls-peer-certificate-encoding.js
+++ b/test/parallel/test-tls-peer-certificate-encoding.js
@@ -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));