You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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:
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.
The text was updated successfully, but these errors were encountered: