testdouble.js icon indicating copy to clipboard operation
testdouble.js copied to clipboard

Add generator function support

Open searls opened this issue 8 years ago • 0 comments

testdouble.js does not currently support generators. Prior to 3.2, td.replace would replace them as it would any other function, but this was accidental in that the resulting functions didn't really behave like generator functions.

We need to think through what a fake generator would look like and how it would be stubbed/verified. Right now I have no real idea because I haven't seen many useful, isolated examples of them.

searls avatar Jul 05 '17 12:07 searls