From 19d6568f64f3710f550e99e29cffa0920e614f7c Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Sat, 23 Sep 2023 11:43:54 +0530 Subject: [PATCH 1/3] test: replace forEach with for..of in test-fs-realpath-buffer-encoding --- test/parallel/test-fs-realpath-buffer-encoding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-realpath-buffer-encoding.js b/test/parallel/test-fs-realpath-buffer-encoding.js index 481e1b0df67f04..8e288de6a6216e 100644 --- a/test/parallel/test-fs-realpath-buffer-encoding.js +++ b/test/parallel/test-fs-realpath-buffer-encoding.js @@ -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 From 0c58e20263e87f3768d1f4f8747c95a7e72cc52f Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Sun, 24 Sep 2023 15:15:29 +0530 Subject: [PATCH 2/3] test: replace forEach with for..of in test-fs-readv.js --- test/parallel/test-fs-realpath-buffer-encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-realpath-buffer-encoding.js b/test/parallel/test-fs-realpath-buffer-encoding.js index 8e288de6a6216e..2b81fc6ef61456 100644 --- a/test/parallel/test-fs-realpath-buffer-encoding.js +++ b/test/parallel/test-fs-realpath-buffer-encoding.js @@ -12,7 +12,7 @@ const encodings = ['ascii', 'utf8', 'utf16le', 'ucs2', const expected = {}; for(const encoding of encodings) { expected[encoding] = buffer_dir.toString(encoding); -}; +} // test sync version From af311e71a3c3a485778246c85adc6b7fa131f51f Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Mon, 25 Sep 2023 10:32:11 +0530 Subject: [PATCH 3/3] test: replace forEach with for..of in test-fs-realpath-buffer-encoding --- test/parallel/test-fs-realpath-buffer-encoding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-realpath-buffer-encoding.js b/test/parallel/test-fs-realpath-buffer-encoding.js index 2b81fc6ef61456..dbf2bda2c77d23 100644 --- a/test/parallel/test-fs-realpath-buffer-encoding.js +++ b/test/parallel/test-fs-realpath-buffer-encoding.js @@ -10,7 +10,7 @@ const buffer_dir = Buffer.from(string_dir); const encodings = ['ascii', 'utf8', 'utf16le', 'ucs2', 'base64', 'binary', 'hex']; const expected = {}; -for(const encoding of encodings) { +for (const encoding of encodings) { expected[encoding] = buffer_dir.toString(encoding); }