Skip to content

Commit a376284

Browse files
yedloshUlisesGascon
authored andcommitted
test: use destructuring for accessing setting values
PR-URL: #50609 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 40bbffa commit a376284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-http2-session-settings.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ server.listen(
104104
['maxHeaderListSize', 2 ** 32],
105105
['maxHeaderSize', -1],
106106
['maxHeaderSize', 2 ** 32],
107-
].forEach((i) => {
107+
].forEach(([key, value]) => {
108108
const settings = {};
109-
settings[i[0]] = i[1];
109+
settings[key] = value;
110110
assert.throws(
111111
() => client.settings(settings),
112112
{
113113
name: 'RangeError',
114114
code: 'ERR_HTTP2_INVALID_SETTING_VALUE',
115-
message: `Invalid value for setting "${i[0]}": ${i[1]}`
115+
message: `Invalid value for setting "${key}": ${value}`
116116
}
117117
);
118118
});

0 commit comments

Comments
 (0)