[mocha-developer] expects with returns that returns the return value of the actual method

James Mead jamesmead44 at gmail.com
Thu Jun 21 05:00:23 EDT 2007

While it would be technically possible, Mocha doesn't support this. I doubt
it ever will because what you describe is not really what mocking is all

Why do you want to get the real result? Can you not record a sample result
and then use this as a canned result in the test?

More information about the mocha-developer mailing list