Skip to content

Commit

Permalink
test_runner: replace forEach with for of
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tomhaddad authored and UlisesGascon committed Dec 11, 2023
1 parent 842dc01 commit c33a84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-runner-mock-timers.js
Expand Up @@ -505,10 +505,10 @@ describe('Mock Timers Test Suite', () => {

const finished = await intervalIterator.return();
assert.deepStrictEqual(finished, { done: true, value: undefined });
results.forEach((result) => {
for (const result of results) {
assert.strictEqual(typeof result.value, 'number');
assert.strictEqual(result.done, false);
});
}
});
it('should tick five times testing a real use case', async (t) => {
t.mock.timers.enable({ apis: ['setInterval'] });
Expand Down

0 comments on commit c33a84a

Please sign in to comment.