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 targos committed Nov 14, 2023
1 parent 05e8b6e commit ae4a7ba
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 ae4a7ba

Please sign in to comment.