Created
October 21, 2016 08:39
-
-
Save karboom/53e89def04ea4bbbace8540d8253e6a0 to your computer and use it in GitHub Desktop.
Use mocha with generator
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
require('mocha') | |
exports.co_it = (description, func) => { | |
it(description, done => { | |
co(func).then(done).catch(done) | |
}) | |
} |
Author
karboom
commented
Oct 21, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment