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 <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>
  • Loading branch information
niyashiyas authored and targos committed Nov 14, 2023
1 parent 2b6d283 commit d24de12
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 d24de12

Please sign in to comment.