Created
June 6, 2020 17:30
-
-
Save craigtaub/4c7edec319dda655c1eba197ae1850a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Runner.prototype.hooks = function(name, callback) { | |
function next(suite) { | |
if (!suite) callback() | |
hook(name, () => { | |
next(suites.pop()) // run hooks for next suite | |
}) | |
} | |
next() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment