-
-
Notifications
You must be signed in to change notification settings - Fork 772
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
Improve documentation on Stubs #2062
Comments
Improvements to our docs are welcome. We have been discussing a different take on the API docs as well, more in line with how the Lodash docs work, but that's a huge undertaking not likely to happen anytime soon. Working beats perfect :-) For extensive tutorial-like examples, we do have the how-to section, which have been in need of expansion for some time. |
thanks @fatso83 for the quick feedback. I see the example in the |
hi, apology on the delay. I was playing with Sinon and will try to propose some changes by Friday night.
Great thanks, |
hi @fatso83, I was looking at the code samples in the documentation. I realise that the code samples in the
Please let me know if that makes sense and I'll be happy to work on a pull request. Regards, |
hi, I was just wondering if you had any feedback and if you're interested for me to work on a pull request :) |
Sure ... I'm a bit swamped with a new family situation and such, so I can't go into specifics on this, but I think there should be room for a kind of introduction to Sinon through various use cases, as you mentioned. But that already exists in many places, and we have linked to several, I believe. You can rip of the best parts and distill it into a PR. |
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. |
hello, we are preparing a pull request. Thanks!
…On Tue, 29 Oct 2019 at 02:43, stale[bot] ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2062?email_source=notifications&email_token=AAK7TCOXPWKOY5GX3YOUPT3QQ4XDXA5CNFSM4IFBQBN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECN7ACI#issuecomment-547090441>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAK7TCLTNT2ITLH23JO66U3QQ4XDXANCNFSM4IFBQBNQ>
.
|
hello, we are preparing a pull request, thanks! |
Proposed improvement to stubs doc, [as suggested here](sinonjs#2062). - Focus more on the basics of stubbing an object's function (stub pre-programmed to throw exception/return value) - Less discussion on spies - Provide very simple code to test as an example, instead of external library's (PubSub) code - Show why restoration of a stub is necessary
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. |
This was fixed in #2152 |
Hi,
first of all I'd like to thank you for the great work on Sinon. I've been using it for a few weeks and it helps us a lot having better tests.
I would be happy to work on this issue if you're interested.
Is your feature request related to a problem? Please describe.
I was discussing with my colleagues about the fact that the
sinon
documentation is often not enough and that we need to search on the web / go on stackoverflow to get more examples before we can understand things.Describe the solution you'd like
Have better examples for the stub documentation page. Add some examples that would be less theoretical, closer to what we use on a real project.
For instance, the example on stubs uses Spies (which will make people confused if they don't know what a Spy is).
I would be happy to draft something out if you are interested.
Describe alternatives you've considered
NA
Additional context
NA
The text was updated successfully, but these errors were encountered: