We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I call create and pass a prototypal function, I should expect to be returned an object with doubles for each of its prototype's functions.
For instance if I have:
Foo = function(){}; Foo.prototype.bar = function(){}; Foo.prototype.baz = function(){};
Then I should be able to:
testDouble = require('testdouble').create(Foo); when(testDouble.bar(3)).thenReturn("LOL") testDouble.bar(3) // "LOL"
The text was updated successfully, but these errors were encountered:
create("name")
No branches or pull requests
When I call create and pass a prototypal function, I should expect to be returned an object with doubles for each of its prototype's functions.
For instance if I have:
Then I should be able to:
The text was updated successfully, but these errors were encountered: