{"action":"opened","issue":{"url":"https://api.github.com/repos/sinonjs/sinon/issues/863","labels_url":"https://api.github.com/repos/sinonjs/sinon/issues/863/labels{/name}","comments_url":"https://api.github.com/repos/sinonjs/sinon/issues/863/comments","events_url":"https://api.github.com/repos/sinonjs/sinon/issues/863/events","html_url":"https://github.com/sinonjs/sinon/issues/863","id":109322746,"number":863,"title":".resetHistory","user":{"login":"mroderick","id":20321,"avatar_url":"https://avatars.githubusercontent.com/u/20321?v=3","gravatar_id":"","url":"https://api.github.com/users/mroderick","html_url":"https://github.com/mroderick","followers_url":"https://api.github.com/users/mroderick/followers","following_url":"https://api.github.com/users/mroderick/following{/other_user}","gists_url":"https://api.github.com/users/mroderick/gists{/gist_id}","starred_url":"https://api.github.com/users/mroderick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mroderick/subscriptions","organizations_url":"https://api.github.com/users/mroderick/orgs","repos_url":"https://api.github.com/users/mroderick/repos","events_url":"https://api.github.com/users/mroderick/events{/privacy}","received_events_url":"https://api.github.com/users/mroderick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Difficulty:%20Easy","name":"Difficulty: Easy","color":"bfdadc"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Feature%20Request","name":"Feature Request","color":"fbca04"},{"url":"https://api.github.com/repos/sinonjs/sinon/labels/Help%20wanted","name":"Help wanted","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T15:21:25Z","updated_at":"2015-10-01T15:21:25Z","closed_at":null,"body":"With https://github.com/dotchev/Sinon.JS/commit/7078dd8c60273ddda97d868a57f02d73f0edf54e it is no longer possible to only reset the call history of a stub.\r\n\r\nAs discussed in https://github.com/sinonjs/sinon/issues/806#issuecomment-144327382, we could expand the api a tiny bit.\r\n\r\n```javascript\r\n// resets both call history and behaviour\r\nstub.reset();\r\n\r\n// NEW: reset call history \r\nstub.resetHistory();\r\n\r\n// reset behaviour\r\nstub.resetBehavior()\r\n```"}}