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
  • Loading branch information
niyashiyas committed Sep 23, 2023
1 parent e329a11 commit a48a193
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 a48a193

Please # to comment.