Skip to content

Commit d24de12

Browse files
niyashiyastargos
authored andcommitted
test: replace forEach with for...of in test-fs-realpath-buffer-encoding
PR-URL: #49804 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 2b6d283 commit d24de12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-realpath-buffer-encoding.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const buffer_dir = Buffer.from(string_dir);
1010
const encodings = ['ascii', 'utf8', 'utf16le', 'ucs2',
1111
'base64', 'binary', 'hex'];
1212
const expected = {};
13-
encodings.forEach((encoding) => {
13+
for (const encoding of encodings) {
1414
expected[encoding] = buffer_dir.toString(encoding);
15-
});
15+
}
1616

1717

1818
// test sync version

0 commit comments

Comments
 (0)