Created
June 6, 2020 17:30
-
-
Save craigtaub/8cdda8034cbb211c1afd1485c166d809 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.runTest = function(fn) { | |
var self = this | |
var test = this.test | |
if (!test) return | |
try { | |
// 1. run the test | |
test.run(fn) | |
} catch (err) { | |
fn(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment