Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support addBatch() with object with more than one key #398

Open
evanp opened this issue May 10, 2018 · 0 comments
Open

Support addBatch() with object with more than one key #398

evanp opened this issue May 10, 2018 · 0 comments
Labels
bug The software doesn't do what we say it does

Comments

@evanp
Copy link
Contributor

evanp commented May 10, 2018

We should be able to do this:

vows.describe('a test suite')
  .addBatch({
      'When something happens': { // ...
      },
      'When something else happens': { // ...
      }
   })
   .export(module)

I'm not sure how this actually shakes out. I think the easiest thing to do is just add multiple Batch objects, although that makes the method signature addBatch() (singular) a little misleading.

@evanp evanp added the bug The software doesn't do what we say it does label May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The software doesn't do what we say it does
Projects
None yet
Development

No branches or pull requests

1 participant