{"action":"opened","number":461,"pull_request":{"url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461","id":156771489,"html_url":"https://github.com/biglotteryfund/blf-alpha/pull/461","diff_url":"https://github.com/biglotteryfund/blf-alpha/pull/461.diff","patch_url":"https://github.com/biglotteryfund/blf-alpha/pull/461.patch","issue_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/461","number":461,"state":"open","locked":false,"title":"Add unit tests for middleware","user":{"login":"davidrapson","id":123386,"avatar_url":"https://avatars0.githubusercontent.com/u/123386?v=4","gravatar_id":"","url":"https://api.github.com/users/davidrapson","html_url":"https://github.com/davidrapson","followers_url":"https://api.github.com/users/davidrapson/followers","following_url":"https://api.github.com/users/davidrapson/following{/other_user}","gists_url":"https://api.github.com/users/davidrapson/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrapson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrapson/subscriptions","organizations_url":"https://api.github.com/users/davidrapson/orgs","repos_url":"https://api.github.com/users/davidrapson/repos","events_url":"https://api.github.com/users/davidrapson/events{/privacy}","received_events_url":"https://api.github.com/users/davidrapson/received_events","type":"User","site_admin":false},"body":"Uses a combination of the nice [node-mocks-http](https://www.npmjs.com/package/node-mocks-http) package and construction minimal express instances to add isolated tests for middle-wares. Encouraged me to rejig them a little bit to make them more testable.","created_at":"2017-12-06T16:11:38Z","updated_at":"2017-12-06T16:11:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461/commits","review_comments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461/comments","review_comment_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/461/comments","statuses_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/statuses/fd3621e69370c52d4dc2d47774c402362d584d44","head":{"label":"biglotteryfund:unit-tests","ref":"unit-tests","sha":"fd3621e69370c52d4dc2d47774c402362d584d44","user":{"login":"biglotteryfund","id":26795798,"avatar_url":"https://avatars1.githubusercontent.com/u/26795798?v=4","gravatar_id":"","url":"https://api.github.com/users/biglotteryfund","html_url":"https://github.com/biglotteryfund","followers_url":"https://api.github.com/users/biglotteryfund/followers","following_url":"https://api.github.com/users/biglotteryfund/following{/other_user}","gists_url":"https://api.github.com/users/biglotteryfund/gists{/gist_id}","starred_url":"https://api.github.com/users/biglotteryfund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biglotteryfund/subscriptions","organizations_url":"https://api.github.com/users/biglotteryfund/orgs","repos_url":"https://api.github.com/users/biglotteryfund/repos","events_url":"https://api.github.com/users/biglotteryfund/events{/privacy}","received_events_url":"https://api.github.com/users/biglotteryfund/received_events","type":"Organization","site_admin":false},"repo":{"id":86326904,"name":"blf-alpha","full_name":"biglotteryfund/blf-alpha","owner":{"login":"biglotteryfund","id":26795798,"avatar_url":"https://avatars1.githubusercontent.com/u/26795798?v=4","gravatar_id":"","url":"https://api.github.com/users/biglotteryfund","html_url":"https://github.com/biglotteryfund","followers_url":"https://api.github.com/users/biglotteryfund/followers","following_url":"https://api.github.com/users/biglotteryfund/following{/other_user}","gists_url":"https://api.github.com/users/biglotteryfund/gists{/gist_id}","starred_url":"https://api.github.com/users/biglotteryfund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biglotteryfund/subscriptions","organizations_url":"https://api.github.com/users/biglotteryfund/orgs","repos_url":"https://api.github.com/users/biglotteryfund/repos","events_url":"https://api.github.com/users/biglotteryfund/events{/privacy}","received_events_url":"https://api.github.com/users/biglotteryfund/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biglotteryfund/blf-alpha","description":"The Big Lottery Fund gives grants to organisations in the UK to help improve their communities. The money awarded comes from the UK National Lottery.","fork":false,"url":"https://api.github.com/repos/biglotteryfund/blf-alpha","forks_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/forks","keys_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/teams","hooks_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/hooks","issue_events_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/events{/number}","events_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/events","assignees_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/assignees{/user}","branches_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/branches{/branch}","tags_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/tags","blobs_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/refs{/sha}","trees_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/statuses/{sha}","languages_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/languages","stargazers_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/stargazers","contributors_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/contributors","subscribers_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/subscribers","subscription_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/subscription","commits_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/commits{/sha}","git_commits_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/commits{/sha}","comments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/comments{/number}","issue_comment_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/comments{/number}","contents_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/contents/{+path}","compare_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/merges","archive_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/downloads","issues_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues{/number}","pulls_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls{/number}","milestones_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/milestones{/number}","notifications_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/labels{/name}","releases_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/releases{/id}","deployments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/deployments","created_at":"2017-03-27T11:24:13Z","updated_at":"2017-09-27T15:56:17Z","pushed_at":"2017-12-06T16:10:01Z","git_url":"git://github.com/biglotteryfund/blf-alpha.git","ssh_url":"git@github.com:biglotteryfund/blf-alpha.git","clone_url":"https://github.com/biglotteryfund/blf-alpha.git","svn_url":"https://github.com/biglotteryfund/blf-alpha","homepage":"https://www.biglotteryfund.org.uk","size":31591,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":82,"license":null,"forks":0,"open_issues":82,"watchers":1,"default_branch":"master"}},"base":{"label":"biglotteryfund:master","ref":"master","sha":"0563f95daf2b2551d28164073ddef74b78f427f1","user":{"login":"biglotteryfund","id":26795798,"avatar_url":"https://avatars1.githubusercontent.com/u/26795798?v=4","gravatar_id":"","url":"https://api.github.com/users/biglotteryfund","html_url":"https://github.com/biglotteryfund","followers_url":"https://api.github.com/users/biglotteryfund/followers","following_url":"https://api.github.com/users/biglotteryfund/following{/other_user}","gists_url":"https://api.github.com/users/biglotteryfund/gists{/gist_id}","starred_url":"https://api.github.com/users/biglotteryfund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biglotteryfund/subscriptions","organizations_url":"https://api.github.com/users/biglotteryfund/orgs","repos_url":"https://api.github.com/users/biglotteryfund/repos","events_url":"https://api.github.com/users/biglotteryfund/events{/privacy}","received_events_url":"https://api.github.com/users/biglotteryfund/received_events","type":"Organization","site_admin":false},"repo":{"id":86326904,"name":"blf-alpha","full_name":"biglotteryfund/blf-alpha","owner":{"login":"biglotteryfund","id":26795798,"avatar_url":"https://avatars1.githubusercontent.com/u/26795798?v=4","gravatar_id":"","url":"https://api.github.com/users/biglotteryfund","html_url":"https://github.com/biglotteryfund","followers_url":"https://api.github.com/users/biglotteryfund/followers","following_url":"https://api.github.com/users/biglotteryfund/following{/other_user}","gists_url":"https://api.github.com/users/biglotteryfund/gists{/gist_id}","starred_url":"https://api.github.com/users/biglotteryfund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biglotteryfund/subscriptions","organizations_url":"https://api.github.com/users/biglotteryfund/orgs","repos_url":"https://api.github.com/users/biglotteryfund/repos","events_url":"https://api.github.com/users/biglotteryfund/events{/privacy}","received_events_url":"https://api.github.com/users/biglotteryfund/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biglotteryfund/blf-alpha","description":"The Big Lottery Fund gives grants to organisations in the UK to help improve their communities. The money awarded comes from the UK National Lottery.","fork":false,"url":"https://api.github.com/repos/biglotteryfund/blf-alpha","forks_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/forks","keys_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/teams","hooks_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/hooks","issue_events_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/events{/number}","events_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/events","assignees_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/assignees{/user}","branches_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/branches{/branch}","tags_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/tags","blobs_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/refs{/sha}","trees_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/statuses/{sha}","languages_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/languages","stargazers_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/stargazers","contributors_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/contributors","subscribers_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/subscribers","subscription_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/subscription","commits_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/commits{/sha}","git_commits_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/git/commits{/sha}","comments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/comments{/number}","issue_comment_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/comments{/number}","contents_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/contents/{+path}","compare_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/merges","archive_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/downloads","issues_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues{/number}","pulls_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls{/number}","milestones_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/milestones{/number}","notifications_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/labels{/name}","releases_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/releases{/id}","deployments_url":"https://api.github.com/repos/biglotteryfund/blf-alpha/deployments","created_at":"2017-03-27T11:24:13Z","updated_at":"2017-09-27T15:56:17Z","pushed_at":"2017-12-06T16:10:01Z","git_url":"git://github.com/biglotteryfund/blf-alpha.git","ssh_url":"git@github.com:biglotteryfund/blf-alpha.git","clone_url":"https://github.com/biglotteryfund/blf-alpha.git","svn_url":"https://github.com/biglotteryfund/blf-alpha","homepage":"https://www.biglotteryfund.org.uk","size":31591,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":82,"license":null,"forks":0,"open_issues":82,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461"},"html":{"href":"https://github.com/biglotteryfund/blf-alpha/pull/461"},"issue":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/461"},"comments":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/issues/461/comments"},"review_comments":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461/comments"},"review_comment":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/pulls/461/commits"},"statuses":{"href":"https://api.github.com/repos/biglotteryfund/blf-alpha/statuses/fd3621e69370c52d4dc2d47774c402362d584d44"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":3,"additions":246,"deletions":35,"changed_files":9}}
{"actor":{"display_login":"davidrapson"}}