expect-gen icon indicating copy to clipboard operation
expect-gen copied to clipboard

Add `assert`

Open jimbol opened this issue 7 years ago • 0 comments

I'm not sure about the method name but I'm thinking something like this.

assert

expectGen(generator, [...args])
  .assert(callback, [result])
  • Takes a callback function
  • Passes generator into callback without the next method
  • Passes result into generator's next method
  • Returns same instance StepManager

jimbol avatar Aug 15 '17 16:08 jimbol