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
Error in documentation (Sandbox) #1795
Comments
Hmmm... looking back at it I am not sure... I thought it was like that but apparently, the sinon itself is not a sandbox. However if I do can somebody reproduce it? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have long forgotten about this, but I think the whole premise was wrong:
While, yes, Sinon is a sandbox, the docs are about sandboxes specifically and how to use them, so it makes sense to create one. If you want proof that Sinon is a sandbox, just take a look at var sandbox = new Sandbox();
var api = extend(sandbox, apiMethods);
module.exports = api; |
Describe the bug
Since later on in the documentation it says that sinon itself is a default sandbox, I think the require should be following:
var sandbox = require('sinon')
Context (please complete the following information):
The text was updated successfully, but these errors were encountered: