Skip to content

Commit

Permalink
Added functionality to sleep in between scenario steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Aug 1, 2019
1 parent af3c714 commit 8d85cc6
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 680 deletions.
15 changes: 15 additions & 0 deletions helpers/sleep.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import Chalk from 'chalk'

export default ms => {
return () => {
console.log(Chalk.yellow('======================================================'))
console.log(Chalk.yellow('Sleeping for ' + ms + ' milliseconds'))
console.log(Chalk.yellow('======================================================'))

return new Promise(resolve => {
setTimeout(() => {
resolve(false)
}, ms)
})
}
}
Loading

0 comments on commit 8d85cc6

Please sign in to comment.