test: replace forEach with for...of

PR-URL: https://github.com/nodejs/node/pull/50611
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Ryan Williams authored and Michaël Zasso committed 2023-11-23 10:15:41 +01:00
1 parent 0d556d9a59
commit 75265e491d
1 file changed
+2 -2
@@ -27,7 +27,7 @@ function failAsync(value) {
});
}
prefixValues.forEach((prefixValue) => {
for (const prefixValue of prefixValues) {
fail(prefixValue);
failAsync(prefixValue);
});
}