-
Notifications
You must be signed in to change notification settings - Fork 16
Promise support #14
Copy link
Copy link
Open
Description
A question, really.
We've started using promises for a lot of our tests in order to get a cleaner, more readable structure.
We're using mocha-as-promised (previously just used co), which gives us tests which look like this:
it('some stuff', function * () {
const value = yield someService.somePromise()
expect(value).to.equal(5)
})
I can't seem to get data-driven to wrap this, as much as I'd like to. How difficult would it be (or is it already possible) to use data-driven along with generator functions?
Happy to do a PR if it's something that you think could be accomplished.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels