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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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
constfinished=awaitintervalIterator.return();
507507
assert.deepStrictEqual(finished,{done: true,value: undefined});
508-
results.forEach((result)=>{
508+
for(constresultofresults){
509509
assert.strictEqual(typeofresult.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)