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 UlisesGascon committed Dec 11, 2023
1 parent 600d126 commit 9dc63c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-realpath-buffer-encoding.js
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 9dc63c5

Please sign in to comment.