{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/npms-io/npms-cli/pulls/16","id":84757980,"html_url":"https://github.com/npms-io/npms-cli/pull/16","diff_url":"https://github.com/npms-io/npms-cli/pull/16.diff","patch_url":"https://github.com/npms-io/npms-cli/pull/16.patch","issue_url":"https://api.github.com/repos/npms-io/npms-cli/issues/16","number":16,"state":"open","locked":false,"title":"Add tests.","user":{"login":"satazor","id":1017236,"avatar_url":"https://avatars.githubusercontent.com/u/1017236?v=3","gravatar_id":"","url":"https://api.github.com/users/satazor","html_url":"https://github.com/satazor","followers_url":"https://api.github.com/users/satazor/followers","following_url":"https://api.github.com/users/satazor/following{/other_user}","gists_url":"https://api.github.com/users/satazor/gists{/gist_id}","starred_url":"https://api.github.com/users/satazor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satazor/subscriptions","organizations_url":"https://api.github.com/users/satazor/orgs","repos_url":"https://api.github.com/users/satazor/repos","events_url":"https://api.github.com/users/satazor/events{/privacy}","received_events_url":"https://api.github.com/users/satazor/received_events","type":"User","site_admin":false},"body":"Based on #14 and #15 but with a few differences:\r\n\r\n- Tests do not spawn the cli in a different process; this makes it easy to mock the API.\r\n- Use nock to mock requests\r\n\r\nWhat do you think @flesch @rickycodes @mikeerickson\r\nWhen question though, how can we reliably test if the open command actually open the browser?","created_at":"2016-09-10T15:04:05Z","updated_at":"2016-09-10T15:04:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/npms-io/npms-cli/pulls/16/commits","review_comments_url":"https://api.github.com/repos/npms-io/npms-cli/pulls/16/comments","review_comment_url":"https://api.github.com/repos/npms-io/npms-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npms-io/npms-cli/issues/16/comments","statuses_url":"https://api.github.com/repos/npms-io/npms-cli/statuses/8e0ba204f52e030efa4252ce44ea5629139a698d","head":{"label":"npms-io:tests","ref":"tests","sha":"8e0ba204f52e030efa4252ce44ea5629139a698d","user":{"login":"npms-io","id":17166357,"avatar_url":"https://avatars.githubusercontent.com/u/17166357?v=3","gravatar_id":"","url":"https://api.github.com/users/npms-io","html_url":"https://github.com/npms-io","followers_url":"https://api.github.com/users/npms-io/followers","following_url":"https://api.github.com/users/npms-io/following{/other_user}","gists_url":"https://api.github.com/users/npms-io/gists{/gist_id}","starred_url":"https://api.github.com/users/npms-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npms-io/subscriptions","organizations_url":"https://api.github.com/users/npms-io/orgs","repos_url":"https://api.github.com/users/npms-io/repos","events_url":"https://api.github.com/users/npms-io/events{/privacy}","received_events_url":"https://api.github.com/users/npms-io/received_events","type":"Organization","site_admin":false},"repo":{"id":51465937,"name":"npms-cli","full_name":"npms-io/npms-cli","owner":{"login":"npms-io","id":17166357,"avatar_url":"https://avatars.githubusercontent.com/u/17166357?v=3","gravatar_id":"","url":"https://api.github.com/users/npms-io","html_url":"https://github.com/npms-io","followers_url":"https://api.github.com/users/npms-io/followers","following_url":"https://api.github.com/users/npms-io/following{/other_user}","gists_url":"https://api.github.com/users/npms-io/gists{/gist_id}","starred_url":"https://api.github.com/users/npms-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npms-io/subscriptions","organizations_url":"https://api.github.com/users/npms-io/orgs","repos_url":"https://api.github.com/users/npms-io/repos","events_url":"https://api.github.com/users/npms-io/events{/privacy}","received_events_url":"https://api.github.com/users/npms-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npms-io/npms-cli","description":"The CLI search utility for npms","fork":false,"url":"https://api.github.com/repos/npms-io/npms-cli","forks_url":"https://api.github.com/repos/npms-io/npms-cli/forks","keys_url":"https://api.github.com/repos/npms-io/npms-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npms-io/npms-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npms-io/npms-cli/teams","hooks_url":"https://api.github.com/repos/npms-io/npms-cli/hooks","issue_events_url":"https://api.github.com/repos/npms-io/npms-cli/issues/events{/number}","events_url":"https://api.github.com/repos/npms-io/npms-cli/events","assignees_url":"https://api.github.com/repos/npms-io/npms-cli/assignees{/user}","branches_url":"https://api.github.com/repos/npms-io/npms-cli/branches{/branch}","tags_url":"https://api.github.com/repos/npms-io/npms-cli/tags","blobs_url":"https://api.github.com/repos/npms-io/npms-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npms-io/npms-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npms-io/npms-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/npms-io/npms-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npms-io/npms-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/npms-io/npms-cli/languages","stargazers_url":"https://api.github.com/repos/npms-io/npms-cli/stargazers","contributors_url":"https://api.github.com/repos/npms-io/npms-cli/contributors","subscribers_url":"https://api.github.com/repos/npms-io/npms-cli/subscribers","subscription_url":"https://api.github.com/repos/npms-io/npms-cli/subscription","commits_url":"https://api.github.com/repos/npms-io/npms-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/npms-io/npms-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/npms-io/npms-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/npms-io/npms-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/npms-io/npms-cli/contents/{+path}","compare_url":"https://api.github.com/repos/npms-io/npms-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npms-io/npms-cli/merges","archive_url":"https://api.github.com/repos/npms-io/npms-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npms-io/npms-cli/downloads","issues_url":"https://api.github.com/repos/npms-io/npms-cli/issues{/number}","pulls_url":"https://api.github.com/repos/npms-io/npms-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/npms-io/npms-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/npms-io/npms-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npms-io/npms-cli/labels{/name}","releases_url":"https://api.github.com/repos/npms-io/npms-cli/releases{/id}","deployments_url":"https://api.github.com/repos/npms-io/npms-cli/deployments","created_at":"2016-02-10T19:26:24Z","updated_at":"2016-09-09T23:16:22Z","pushed_at":"2016-09-10T15:02:12Z","git_url":"git://github.com/npms-io/npms-cli.git","ssh_url":"git@github.com:npms-io/npms-cli.git","clone_url":"https://github.com/npms-io/npms-cli.git","svn_url":"https://github.com/npms-io/npms-cli","homepage":"","size":47,"stargazers_count":149,"watchers_count":149,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":7,"forks":8,"open_issues":7,"watchers":149,"default_branch":"master"}},"base":{"label":"npms-io:master","ref":"master","sha":"3337db6a014e4489b4bab4b6bff20dd6251f2075","user":{"login":"npms-io","id":17166357,"avatar_url":"https://avatars.githubusercontent.com/u/17166357?v=3","gravatar_id":"","url":"https://api.github.com/users/npms-io","html_url":"https://github.com/npms-io","followers_url":"https://api.github.com/users/npms-io/followers","following_url":"https://api.github.com/users/npms-io/following{/other_user}","gists_url":"https://api.github.com/users/npms-io/gists{/gist_id}","starred_url":"https://api.github.com/users/npms-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npms-io/subscriptions","organizations_url":"https://api.github.com/users/npms-io/orgs","repos_url":"https://api.github.com/users/npms-io/repos","events_url":"https://api.github.com/users/npms-io/events{/privacy}","received_events_url":"https://api.github.com/users/npms-io/received_events","type":"Organization","site_admin":false},"repo":{"id":51465937,"name":"npms-cli","full_name":"npms-io/npms-cli","owner":{"login":"npms-io","id":17166357,"avatar_url":"https://avatars.githubusercontent.com/u/17166357?v=3","gravatar_id":"","url":"https://api.github.com/users/npms-io","html_url":"https://github.com/npms-io","followers_url":"https://api.github.com/users/npms-io/followers","following_url":"https://api.github.com/users/npms-io/following{/other_user}","gists_url":"https://api.github.com/users/npms-io/gists{/gist_id}","starred_url":"https://api.github.com/users/npms-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npms-io/subscriptions","organizations_url":"https://api.github.com/users/npms-io/orgs","repos_url":"https://api.github.com/users/npms-io/repos","events_url":"https://api.github.com/users/npms-io/events{/privacy}","received_events_url":"https://api.github.com/users/npms-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npms-io/npms-cli","description":"The CLI search utility for npms","fork":false,"url":"https://api.github.com/repos/npms-io/npms-cli","forks_url":"https://api.github.com/repos/npms-io/npms-cli/forks","keys_url":"https://api.github.com/repos/npms-io/npms-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npms-io/npms-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npms-io/npms-cli/teams","hooks_url":"https://api.github.com/repos/npms-io/npms-cli/hooks","issue_events_url":"https://api.github.com/repos/npms-io/npms-cli/issues/events{/number}","events_url":"https://api.github.com/repos/npms-io/npms-cli/events","assignees_url":"https://api.github.com/repos/npms-io/npms-cli/assignees{/user}","branches_url":"https://api.github.com/repos/npms-io/npms-cli/branches{/branch}","tags_url":"https://api.github.com/repos/npms-io/npms-cli/tags","blobs_url":"https://api.github.com/repos/npms-io/npms-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npms-io/npms-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npms-io/npms-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/npms-io/npms-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npms-io/npms-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/npms-io/npms-cli/languages","stargazers_url":"https://api.github.com/repos/npms-io/npms-cli/stargazers","contributors_url":"https://api.github.com/repos/npms-io/npms-cli/contributors","subscribers_url":"https://api.github.com/repos/npms-io/npms-cli/subscribers","subscription_url":"https://api.github.com/repos/npms-io/npms-cli/subscription","commits_url":"https://api.github.com/repos/npms-io/npms-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/npms-io/npms-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/npms-io/npms-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/npms-io/npms-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/npms-io/npms-cli/contents/{+path}","compare_url":"https://api.github.com/repos/npms-io/npms-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npms-io/npms-cli/merges","archive_url":"https://api.github.com/repos/npms-io/npms-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npms-io/npms-cli/downloads","issues_url":"https://api.github.com/repos/npms-io/npms-cli/issues{/number}","pulls_url":"https://api.github.com/repos/npms-io/npms-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/npms-io/npms-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/npms-io/npms-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npms-io/npms-cli/labels{/name}","releases_url":"https://api.github.com/repos/npms-io/npms-cli/releases{/id}","deployments_url":"https://api.github.com/repos/npms-io/npms-cli/deployments","created_at":"2016-02-10T19:26:24Z","updated_at":"2016-09-09T23:16:22Z","pushed_at":"2016-09-10T15:02:12Z","git_url":"git://github.com/npms-io/npms-cli.git","ssh_url":"git@github.com:npms-io/npms-cli.git","clone_url":"https://github.com/npms-io/npms-cli.git","svn_url":"https://github.com/npms-io/npms-cli","homepage":"","size":47,"stargazers_count":149,"watchers_count":149,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":7,"forks":8,"open_issues":7,"watchers":149,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npms-io/npms-cli/pulls/16"},"html":{"href":"https://github.com/npms-io/npms-cli/pull/16"},"issue":{"href":"https://api.github.com/repos/npms-io/npms-cli/issues/16"},"comments":{"href":"https://api.github.com/repos/npms-io/npms-cli/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/npms-io/npms-cli/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/npms-io/npms-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npms-io/npms-cli/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/npms-io/npms-cli/statuses/8e0ba204f52e030efa4252ce44ea5629139a698d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":287,"deletions":2,"changed_files":9}}
{"actor":{"display_login":"satazor"}}