{"action":"opened","issue":{"url":"https://api.github.com/repos/cjohansen/Sinon.JS/issues/668","labels_url":"https://api.github.com/repos/cjohansen/Sinon.JS/issues/668/labels{/name}","comments_url":"https://api.github.com/repos/cjohansen/Sinon.JS/issues/668/comments","events_url":"https://api.github.com/repos/cjohansen/Sinon.JS/issues/668/events","html_url":"https://github.com/cjohansen/Sinon.JS/issues/668","id":55880164,"number":668,"title":"Spy on and call through a method","user":{"login":"hypesystem","id":859106,"avatar_url":"https://avatars.githubusercontent.com/u/859106?v=3","gravatar_id":"","url":"https://api.github.com/users/hypesystem","html_url":"https://github.com/hypesystem","followers_url":"https://api.github.com/users/hypesystem/followers","following_url":"https://api.github.com/users/hypesystem/following{/other_user}","gists_url":"https://api.github.com/users/hypesystem/gists{/gist_id}","starred_url":"https://api.github.com/users/hypesystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hypesystem/subscriptions","organizations_url":"https://api.github.com/users/hypesystem/orgs","repos_url":"https://api.github.com/users/hypesystem/repos","events_url":"https://api.github.com/users/hypesystem/events{/privacy}","received_events_url":"https://api.github.com/users/hypesystem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-29T10:12:28Z","updated_at":"2015-01-29T10:12:28Z","closed_at":null,"body":"Jasmine has functionality for [spying on and calling through to the real version of a method](http://jasmine.github.io/2.1/introduction.html#section-Spies:_<code>and.callThrough</code>):\r\n\r\n```javascript\r\nspyOn(object, \"method\").and.callThrough();\r\n```\r\n\r\nThis is useful in case of integration tests, where the function should run as usual, but we want to intercept the arguments it is called with.\r\n\r\nI cannot find any similar functionality in Sinon -- am I missing something or is this case not supported? (If not, I think it would make a nice addition.)\r\n\r\nThank you in advance."}}