We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc31375 commit 9d76de1Copy full SHA for 9d76de1
1 file changed
test/parallel/test-https-simple.js
@@ -45,13 +45,13 @@ const serverCallback = common.mustCall(function(req, res) {
45
});
46
47
const invalid_options = [ 'foo', 42, true, [] ];
48
-invalid_options.forEach((option) => {
+for (const option of invalid_options) {
49
assert.throws(() => {
50
new https.Server(option);
51
}, {
52
code: 'ERR_INVALID_ARG_TYPE',
53
54
-});
+}
55
56
const server = https.createServer(options, serverCallback);
57
0 commit comments