Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wesone committed May 25, 2021
1 parent 9ae56b8 commit 4d49c5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/utils/Q.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class Q
this.#queue.push(generator);
return this._process(generator);
}
};
}

module.exports = Q;
7 changes: 2 additions & 5 deletions test/core/EventHandler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,8 @@ describe('EventHandler handles replays', () => {
]);

// wait for all events to be handled
await new Promise(async resolve => {
while(eventHandler.queuedEvents > 0)
await new Promise(r => setTimeout(r, 1));
resolve();
});
while(eventHandler.queuedEvents > 0)
await new Promise(r => setTimeout(r, 1));

expect(callback).toHaveBeenCalledTimes(eventCount * 2);
for(let i = 0; i < eventCount; i++)
Expand Down

0 comments on commit 4d49c5b

Please sign in to comment.