Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Hopefully make detecting idleness more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelidlessness committed Mar 20, 2023
1 parent 4f6abec commit 86ee154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/spec/ResizableSignaturePad.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ describe('Resizable extensions to the signature_pad library', () => {
const waitForIdleDOM = async () => {
await waitForNextAnimationFrame();

while (mutationObserver.takeRecords().length > 0) {
do {
// This could probably be accomplished with an async generator, but
// the intent would be much less obvious
// eslint-disable-next-line no-await-in-loop
await waitForNextAnimationFrame();
}
} while (mutationObserver.takeRecords().length > 0);
};

/**
Expand Down

0 comments on commit 86ee154

Please sign in to comment.