Skip to content

Commit

Permalink
test: replace forEach with for...of in test-fs-realpath-buffer-encoding
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
niyashiyas authored and lpinca committed Nov 2, 2023
1 parent 1b74aa3 commit a1693c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-realpath-buffer-encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const buffer_dir = Buffer.from(string_dir);
const encodings = ['ascii', 'utf8', 'utf16le', 'ucs2',
'base64', 'binary', 'hex'];
const expected = {};
encodings.forEach((encoding) => {
for (const encoding of encodings) {
expected[encoding] = buffer_dir.toString(encoding);
});
}


// test sync version
Expand Down

0 comments on commit a1693c6

Please sign in to comment.