{"action":"opened","issue":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/1072","repository_url":"https://api.github.com/repos/sinonjs/sinon","labels_url":"https://api.github.com/repos/sinonjs/sinon/issues/1072/labels{/name}","comments_url":"https://api.github.com/repos/sinonjs/sinon/issues/1072/comments","events_url":"https://api.github.com/repos/sinonjs/sinon/issues/1072/events","html_url":"https://github.com/sinonjs/sinon/issues/1072","id":161923565,"number":1072,"title":"Sandbox resetBehaviour and resetHistory","user":{"login":"Gudahtt","id":2459287,"avatar_url":"https://avatars.githubusercontent.com/u/2459287?v=3","gravatar_id":"","url":"https://api.github.com/users/Gudahtt","html_url":"https://github.com/Gudahtt","followers_url":"https://api.github.com/users/Gudahtt/followers","following_url":"https://api.github.com/users/Gudahtt/following{/other_user}","gists_url":"https://api.github.com/users/Gudahtt/gists{/gist_id}","starred_url":"https://api.github.com/users/Gudahtt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gudahtt/subscriptions","organizations_url":"https://api.github.com/users/Gudahtt/orgs","repos_url":"https://api.github.com/users/Gudahtt/repos","events_url":"https://api.github.com/users/Gudahtt/events{/privacy}","received_events_url":"https://api.github.com/users/Gudahtt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T13:31:57Z","updated_at":"2016-06-23T13:31:57Z","closed_at":null,"body":"My understanding of issue #806 is that the behaviour of `reset` for stubs was changed to reset both the call history and the stub behaviour. It was decided that `reset` would reset both, `resetHistory` would reset just the call history, and `resetBehaviour` would reset just the stub behaviour.\r\n\r\nIt would be very convenient for me if these two functions, `resetHistory` and `resetBehaviour`, were made available through the sandbox API. That is, I would like them to be added to `lib/sinon/collections.js` alongside `reset` so that you could reset the history or behaviour of an entire sandbox at once.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"Gudahtt"}}