diff --git a/spec/async-spec-helpers.js b/spec/async-spec-helpers.js index e3cf26fa7..56550cd9f 100644 --- a/spec/async-spec-helpers.js +++ b/spec/async-spec-helpers.js @@ -34,7 +34,7 @@ export function afterEach (fn) { } }) -export async function conditionPromise (condition) { +export async function conditionPromise (condition) { const startTime = Date.now() while (true) { @@ -45,7 +45,7 @@ export async function conditionPromise (condition) { } if (Date.now() - startTime > 5000) { - throw new Error("Timed out waiting on condition") + throw new Error('Timed out waiting on condition') } } } @@ -96,7 +96,7 @@ export function promisify (original) { export function promisifySome (obj, fnNames) { const result = {} - for (fnName of fnNames) { + for (const fnName of fnNames) { result[fnName] = promisify(obj[fnName]) } return result