{"action":"created","comment":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments/99825959","pull_request_review_id":20510654,"id":99825959,"diff_hunk":"@@ -0,0 +1,50 @@\n+/* eslint no-multi-spaces: \"off\" */\n+/* eslint space-in-parens: \"off\" */\n+/* eslint brace-style: \"off\" */\n+/* eslint max-statements-per-line: \"off\" */\n+var _ = require('lodash');\n+var expect = require('chai').expect;\n+var sinon = require('sinon');\n+var Paginator = require('../../../lib/utils/paginator');\n+\n+describe('Paginator', function () {\n+  describe('Auto height (Terminal mode)', function () {\n+    var paginator;\n+    var height;\n+\n+    beforeEach(function () {\n+      process.stdout.getWindowSize = sinon.stub().returns([80, 20]);\n+      paginator = new Paginator();\n+      height = paginator.getHeight.bind(paginator);","path":"test/specs/utils/paginator.js","position":18,"original_position":18,"commit_id":"2356da2153d6dc847da56684775371ce07ff35b7","original_commit_id":"2356da2153d6dc847da56684775371ce07ff35b7","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"body":"Call `paginator.getHeight()` directly in tests.\r\n\r\nTo make it shorter, maybe iterate over the different test case rather than creating one `it()` block for each value.","created_at":"2017-02-07T13:53:32Z","updated_at":"2017-02-07T13:58:34Z","html_url":"https://github.com/SBoudrias/Inquirer.js/pull/492#discussion_r99825959","pull_request_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492","_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments/99825959"},"html":{"href":"https://github.com/SBoudrias/Inquirer.js/pull/492#discussion_r99825959"},"pull_request":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492"}}},"pull_request":{"url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492","id":104251940,"html_url":"https://github.com/SBoudrias/Inquirer.js/pull/492","diff_url":"https://github.com/SBoudrias/Inquirer.js/pull/492.diff","patch_url":"https://github.com/SBoudrias/Inquirer.js/pull/492.patch","issue_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/492","number":492,"state":"open","locked":false,"title":"Auto height for pageSize","user":{"login":"ihorskyi","id":6171149,"avatar_url":"https://avatars.githubusercontent.com/u/6171149?v=3","gravatar_id":"","url":"https://api.github.com/users/ihorskyi","html_url":"https://github.com/ihorskyi","followers_url":"https://api.github.com/users/ihorskyi/followers","following_url":"https://api.github.com/users/ihorskyi/following{/other_user}","gists_url":"https://api.github.com/users/ihorskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ihorskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihorskyi/subscriptions","organizations_url":"https://api.github.com/users/ihorskyi/orgs","repos_url":"https://api.github.com/users/ihorskyi/repos","events_url":"https://api.github.com/users/ihorskyi/events{/privacy}","received_events_url":"https://api.github.com/users/ihorskyi/received_events","type":"User","site_admin":false},"body":"With `pageSize : 'auto'` height will be adjusted to terminal height.\r\n\r\nAlso refers to #257","created_at":"2017-02-02T00:20:44Z","updated_at":"2017-02-07T13:58:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"666bd1bb83c542f511fe22bc436b9ff204109db5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492/commits","review_comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492/comments","review_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/492/comments","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/2356da2153d6dc847da56684775371ce07ff35b7","head":{"label":"ihorskyi:autoheight_4_pageSize","ref":"autoheight_4_pageSize","sha":"2356da2153d6dc847da56684775371ce07ff35b7","user":{"login":"ihorskyi","id":6171149,"avatar_url":"https://avatars.githubusercontent.com/u/6171149?v=3","gravatar_id":"","url":"https://api.github.com/users/ihorskyi","html_url":"https://github.com/ihorskyi","followers_url":"https://api.github.com/users/ihorskyi/followers","following_url":"https://api.github.com/users/ihorskyi/following{/other_user}","gists_url":"https://api.github.com/users/ihorskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ihorskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihorskyi/subscriptions","organizations_url":"https://api.github.com/users/ihorskyi/orgs","repos_url":"https://api.github.com/users/ihorskyi/repos","events_url":"https://api.github.com/users/ihorskyi/events{/privacy}","received_events_url":"https://api.github.com/users/ihorskyi/received_events","type":"User","site_admin":false},"repo":{"id":73976985,"name":"Inquirer.js","full_name":"ihorskyi/Inquirer.js","owner":{"login":"ihorskyi","id":6171149,"avatar_url":"https://avatars.githubusercontent.com/u/6171149?v=3","gravatar_id":"","url":"https://api.github.com/users/ihorskyi","html_url":"https://github.com/ihorskyi","followers_url":"https://api.github.com/users/ihorskyi/followers","following_url":"https://api.github.com/users/ihorskyi/following{/other_user}","gists_url":"https://api.github.com/users/ihorskyi/gists{/gist_id}","starred_url":"https://api.github.com/users/ihorskyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihorskyi/subscriptions","organizations_url":"https://api.github.com/users/ihorskyi/orgs","repos_url":"https://api.github.com/users/ihorskyi/repos","events_url":"https://api.github.com/users/ihorskyi/events{/privacy}","received_events_url":"https://api.github.com/users/ihorskyi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ihorskyi/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":true,"url":"https://api.github.com/repos/ihorskyi/Inquirer.js","forks_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/forks","keys_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/events","assignees_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/merges","archive_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/ihorskyi/Inquirer.js/deployments","created_at":"2016-11-17T01:17:47Z","updated_at":"2016-11-17T01:17:48Z","pushed_at":"2017-02-06T23:41:07Z","git_url":"git://github.com/ihorskyi/Inquirer.js.git","ssh_url":"git@github.com:ihorskyi/Inquirer.js.git","clone_url":"https://github.com/ihorskyi/Inquirer.js.git","svn_url":"https://github.com/ihorskyi/Inquirer.js","homepage":null,"size":730,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SBoudrias:master","ref":"master","sha":"51fed2b3b28a460a38a7ad0fbd783161415de8d1","user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"repo":{"id":10114077,"name":"Inquirer.js","full_name":"SBoudrias/Inquirer.js","owner":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SBoudrias/Inquirer.js","description":"A collection of common interactive command line user interfaces.","fork":false,"url":"https://api.github.com/repos/SBoudrias/Inquirer.js","forks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/forks","keys_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/teams","hooks_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/hooks","issue_events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/events{/number}","events_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/events","assignees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/assignees{/user}","branches_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/branches{/branch}","tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/tags","blobs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/{sha}","languages_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/languages","stargazers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/stargazers","contributors_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contributors","subscribers_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscribers","subscription_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/subscription","commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/contents/{+path}","compare_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/merges","archive_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/downloads","issues_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues{/number}","pulls_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls{/number}","milestones_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/milestones{/number}","notifications_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/labels{/name}","releases_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/releases{/id}","deployments_url":"https://api.github.com/repos/SBoudrias/Inquirer.js/deployments","created_at":"2013-05-17T01:41:36Z","updated_at":"2017-02-07T13:33:43Z","pushed_at":"2017-02-06T23:41:09Z","git_url":"git://github.com/SBoudrias/Inquirer.js.git","ssh_url":"git@github.com:SBoudrias/Inquirer.js.git","clone_url":"https://github.com/SBoudrias/Inquirer.js.git","svn_url":"https://github.com/SBoudrias/Inquirer.js","homepage":null,"size":720,"stargazers_count":3859,"watchers_count":3859,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":283,"mirror_url":null,"open_issues_count":56,"forks":283,"open_issues":56,"watchers":3859,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492"},"html":{"href":"https://github.com/SBoudrias/Inquirer.js/pull/492"},"issue":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/492"},"comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/issues/492/comments"},"review_comments":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492/comments"},"review_comment":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/pulls/492/commits"},"statuses":{"href":"https://api.github.com/repos/SBoudrias/Inquirer.js/statuses/2356da2153d6dc847da56684775371ce07ff35b7"}}}}
{"actor":{"display_login":"SBoudrias"}}