Skip to content

Commit 18bd8aa

Browse files
author
Tom Haddad
committed
test_runner: replace forEach() with for ... of
Replaces usage of forEach() with for ... of in test-runner-mock-timers.js
1 parent 5e3217c commit 18bd8aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-runner-mock-timers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,10 @@ describe('Mock Timers Test Suite', () => {
505505

506506
const finished = await intervalIterator.return();
507507
assert.deepStrictEqual(finished, { done: true, value: undefined });
508-
results.forEach((result) => {
508+
for (const result of results) {
509509
assert.strictEqual(typeof result.value, 'number');
510510
assert.strictEqual(result.done, false);
511-
});
511+
}
512512
});
513513
it('should tick five times testing a real use case', async (t) => {
514514
t.mock.timers.enable({ apis: ['setInterval'] });

0 commit comments

Comments
 (0)