We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b621ada commit f1cb583Copy full SHA for f1cb583
test/parallel/test-util-log.js
@@ -53,13 +53,13 @@ const tests = [
53
54
// test util.log()
55
const re = /[0-9]{1,2} [A-Z][a-z]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} - (.+)$/;
56
-tests.forEach(function(test) {
+for (const test of tests) {
57
util.log(test.input);
58
const result = strings.shift().trim();
59
const match = re.exec(result);
60
assert.ok(match);
61
assert.strictEqual(match[1], test.output);
62
-});
+}
63
64
assert.strictEqual(process.stdout.writeTimes, tests.length);
65
0 commit comments