Skip to content

Promise support #14

@antony

Description

@antony

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions