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 Nov 8, 2023
1 parent 43dcaa3 commit 8588ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-runner-mock-timers.js
Original file line number Diff line number Diff line change
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 8588ee1

Please sign in to comment.