test: replace forEach() with for ... of in test-readline-keys.js

PR-URL: https://github.com/nodejs/node/pull/50604
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
William Liang authored and Ulises Gascón committed 2023-12-11 17:50:30 +00:00
1 parent 9db6227ac6
commit 9397b2da7e
1 file changed
+2 -2
+2 -2
View File
@@ -34,9 +34,9 @@ function addTest(sequences, expectedKeys) {
keys = [];
sequences.forEach((sequence) => {
for (const sequence of sequences) {
fi.write(sequence);
});
}
assert.deepStrictEqual(keys, expectedKeys);
}