{"action":"created","issue":{"url":"https://api.github.com/repos/nock/nock/issues/200","repository_url":"https://api.github.com/repos/nock/nock","labels_url":"https://api.github.com/repos/nock/nock/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/nock/nock/issues/200/comments","events_url":"https://api.github.com/repos/nock/nock/issues/200/events","html_url":"https://github.com/nock/nock/issues/200","id":35863509,"node_id":"MDU6SXNzdWUzNTg2MzUwOQ==","number":200,"title":"Setting Request Expected parameters","user":{"login":"joshacheson","id":1906888,"node_id":"MDQ6VXNlcjE5MDY4ODg=","avatar_url":"https://avatars1.githubusercontent.com/u/1906888?v=4","gravatar_id":"","url":"https://api.github.com/users/joshacheson","html_url":"https://github.com/joshacheson","followers_url":"https://api.github.com/users/joshacheson/followers","following_url":"https://api.github.com/users/joshacheson/following{/other_user}","gists_url":"https://api.github.com/users/joshacheson/gists{/gist_id}","starred_url":"https://api.github.com/users/joshacheson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshacheson/subscriptions","organizations_url":"https://api.github.com/users/joshacheson/orgs","repos_url":"https://api.github.com/users/joshacheson/repos","events_url":"https://api.github.com/users/joshacheson/events{/privacy}","received_events_url":"https://api.github.com/users/joshacheson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2014-06-17T07:13:36Z","updated_at":"2018-09-14T01:14:04Z","closed_at":"2014-06-23T09:06:10Z","author_association":"NONE","body":"My primary reason for using nock is to fake requests using requestJS. Because of the way Sinon works it's not so good at handling this task.\n\nOne thing that I think might be good is to set up request expectations for requests. In a way something like this:\n\n```\nnock('some_url')\n  .get('/some_path')\n  .expect(function(headers, body){\n     body.id.should.equal(200);\n   })\n```\n\nThis is useful for testing in a case where, like an API library, you offer abstractions for http requests like \"getTweet(1234)\" and hope that somewhere along the lines an http request is made that might have body data where id = 1234\n\nAnyways, This is not a greedy feature request, I would be very happy to try to add this functionality to the lib myself if this is seen as a good direction / feature. Would love feedback.\n"},"comment":{"url":"https://api.github.com/repos/nock/nock/issues/comments/421199725","html_url":"https://github.com/nock/nock/issues/200#issuecomment-421199725","issue_url":"https://api.github.com/repos/nock/nock/issues/200","id":421199725,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTE5OTcyNQ==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-09-14T01:14:04Z","updated_at":"2018-09-14T01:14:04Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue and add a reference to this one if it’s related. Thank you!\n"}}
{"actor":{"display_login":"lock"}}