Convert some TreeRunner internals to promises

This commit is contained in:
Steve Gravrock
2025-08-21 07:58:28 -07:00
parent 164a393932
commit 3780fe0b35
3 changed files with 14 additions and 12 deletions

View File

@@ -112,6 +112,8 @@ describe('TreeRunner', function() {
expect(spec.result.duration).toEqual('the elapsed time');
expect(spec.reportedDone).toEqual(true);
await Promise.resolve();
await Promise.resolve();
await Promise.resolve();
expect(reportDispatcher.specDone).toHaveBeenCalledBefore(next);
await expectAsync(promise).toBePending();
});