-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
💵 Funded on IssuehuntThis issue has been funded on IssuehuntThis issue has been funded on Issuehuntbugcurrent functionality does not work as desiredcurrent functionality does not work as desiredhelp wantedscope:reporters
Description
Ava: "^1.0.0-beta.8",
I'm trying a simple wait function:
function wait (sec) {
const ms = (sec) ? sec * 1000 : 1000
return new Promise((resolve, reject) => {
return setTimeout(resolve, ms)
})
}
test('test wait', async t => {
let a
console.log('_0')
a = await wait()
console.log('_1')
a = await wait(2)
console.log('_2')
t.pass()
})
It will pass but not console.log
anything after _0
There is a $60.00 open bounty on this issue. Add more on Issuehunt.
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on Issuehunt to raise funds.
screendriver, zachleat, mastilver, ianwalter, GMartigny and 1 more
Metadata
Metadata
Assignees
Labels
💵 Funded on IssuehuntThis issue has been funded on IssuehuntThis issue has been funded on Issuehuntbugcurrent functionality does not work as desiredcurrent functionality does not work as desiredhelp wantedscope:reporters