Skip to content

Commit

Permalink
test_runner: replace forEach with for of
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhaddad committed Nov 7, 2023
1 parent 5e3217c commit d907f14
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 d907f14

Please sign in to comment.