Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Revert
f424811
as upstream bug was fixed (see
eslint/eslint#9993)
  • Loading branch information
taneliang committed Feb 25, 2018
1 parent d496226 commit 8017eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/js/test-utils/async.js
Expand Up @@ -9,8 +9,8 @@ export const nextTick = util.promisify(process.nextTick);
* components that have async actions, such as making network requests
*/
export async function waitFor(condition: () => boolean, intervalInMs: number = 5) {
// eslint-disable-next-line no-await-in-loop
while (!condition()) {
// eslint-disable-next-line no-await-in-loop
await new Promise((resolve) => setTimeout(resolve, intervalInMs));
}
}

0 comments on commit 8017eaf

Please sign in to comment.