👕 keep standard happy

This commit is contained in:
Ash Wilson
2017-06-22 08:33:13 -04:00
parent d858e37058
commit 246e87b660

View File

@@ -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