Skip to content

Commit 55c423b

Browse files
edodusirichardlau
authored andcommitted
test: replace forEach() with for...of in test/parallel/test-util-log.js
PR-URL: #50783 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent d8da197 commit 55c423b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/parallel/test-util-log.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ const tests = [
5353

5454
// test util.log()
5555
constre=/[0-9]{1,2}[A-Z][a-z]{2}[0-9]{2}:[0-9]{2}:[0-9]{2}-(.+)$/;
56-
tests.forEach(function(test){
56+
for(consttestoftests){
5757
util.log(test.input);
5858
constresult=strings.shift().trim();
5959
constmatch=re.exec(result);
6060
assert.ok(match);
6161
assert.strictEqual(match[1],test.output);
62-
});
62+
}
6363

6464
assert.strictEqual(process.stdout.writeTimes,tests.length);
6565

0 commit comments

Comments
(0)