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:
Tobias Nießen committed 2018-01-17 14:33:20 +01:00
1 parent eb68a06a3e
commit db9c556f50
40 files changed
+55 -86

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ const data = Buffer.alloc(1024 * 32 + 1);
httpsTest();
function httpsTest() {
const sopt = { key: key, cert: cert };
const sopt = { key, cert };
const server = https.createServer(sopt, function(req, res) {
res.setHeader('content-length', data.length);