| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 05e8b6e commit ae4a7ba
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -505,10 +505,10 @@ describe('Mock Timers Test Suite', () => { | |||
| 505 | 505 | ||
| 506 | 506 | const finished = await intervalIterator.return(); | |
| 507 | 507 | assert.deepStrictEqual(finished, { done: true, value: undefined }); | |
| 508 | - results.forEach((result) => { | ||
| 508 | + for (const result of results) { | ||
| 509 | 509 | assert.strictEqual(typeof result.value, 'number'); | |
| 510 | 510 | assert.strictEqual(result.done, false); | |
| 511 | - }); | ||
| 511 | + } | ||
| 512 | 512 | }); | |
| 513 | 513 | it('should tick five times testing a real use case', async (t) => { | |
| 514 | 514 | t.mock.timers.enable({ apis: ['setInterval'] }); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments