From 13fb7dc853616b08e146e343b59f513b455d007c Mon Sep 17 00:00:00 2001 From: Niya Shiyas Date: Mon, 25 Sep 2023 10:32:11 +0530 Subject: [PATCH] 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); }