Skip to content

Commit c33a84a

Browse files
tomhaddadUlisesGascon
authored andcommitted
test_runner: replace forEach with for of
PR-URL: #50595 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 842dc01 commit c33a84a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
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)