Skip to content

Commit 9dc63c5

Browse files
niyashiyasUlisesGascon
authored andcommitted
test: replace forEach with for...of in test-fs-realpath-buffer-encoding
PR-URL: #49804 Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 600d126 commit 9dc63c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

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

1717

1818
// test sync version

0 commit comments

Comments
(0)