{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments/49702330","id":49702330,"diff_hunk":"@@ -11,24 +14,70 @@ test(\"JSCS linting\", function() {\n     pull_request_number: \"pull_request_number\",\n     patch: \"patch\",\n   };\n-  var outbound = {\n-    enqueue: function(job) {\n-      return job;\n-    }\n+  var redis = Redis.createClient();\n+  var houndJavascript = new HoundJavascript(redis);\n+  var linter = new Linter(houndJavascript);\n+\n+  linter.lint(payload).then(function() {\n+    lastJob(redis, \"high\", function(job) {\n+      start();\n+\n+      equal(\n+        job.class,\n+        \"CompletedFileReviewJob\",\n+        \"pushes the proper job type\"\n+      );\n+      deepEqual(","path":"tests/linter-test.js","position":34,"original_position":34,"commit_id":"5f4402e875176f2709124efc9fbd15978438f859","original_commit_id":"5f4402e875176f2709124efc9fbd15978438f859","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'deepEqual' is not defined.","created_at":"2016-01-14T09:19:45Z","updated_at":"2016-01-14T09:19:45Z","html_url":"https://github.com/thoughtbot/hound-jscs/pull/8#discussion_r49702330","pull_request_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments/49702330"},"html":{"href":"https://github.com/thoughtbot/hound-jscs/pull/8#discussion_r49702330"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8","id":56009270,"html_url":"https://github.com/thoughtbot/hound-jscs/pull/8","diff_url":"https://github.com/thoughtbot/hound-jscs/pull/8.diff","patch_url":"https://github.com/thoughtbot/hound-jscs/pull/8.patch","issue_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/8","number":8,"state":"open","locked":false,"title":"Use the abstractions from `hound-javascript`","user":{"login":"teoljungberg","id":810650,"avatar_url":"https://avatars.githubusercontent.com/u/810650?v=3","gravatar_id":"","url":"https://api.github.com/users/teoljungberg","html_url":"https://github.com/teoljungberg","followers_url":"https://api.github.com/users/teoljungberg/followers","following_url":"https://api.github.com/users/teoljungberg/following{/other_user}","gists_url":"https://api.github.com/users/teoljungberg/gists{/gist_id}","starred_url":"https://api.github.com/users/teoljungberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teoljungberg/subscriptions","organizations_url":"https://api.github.com/users/teoljungberg/orgs","repos_url":"https://api.github.com/users/teoljungberg/repos","events_url":"https://api.github.com/users/teoljungberg/events{/privacy}","received_events_url":"https://api.github.com/users/teoljungberg/received_events","type":"User","site_admin":false},"body":"Which allows us to have a uniform API to:\n\n- Send violations back to Hound.\n- Report invalid configuration files back to Hound, to let the end user\n  know.\n\nChanges:\n\n- Extract `Config` object from `Linter`.\n- Only lint when the configuration is valid.","created_at":"2016-01-14T09:19:41Z","updated_at":"2016-01-14T09:19:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af79b2e557073517644f87862e1d94e42169012d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/8/comments","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/5f4402e875176f2709124efc9fbd15978438f859","head":{"label":"thoughtbot:implement-hound-javascript","ref":"implement-hound-javascript","sha":"5f4402e875176f2709124efc9fbd15978438f859","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":43764089,"name":"hound-jscs","full_name":"thoughtbot/hound-jscs","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jscs","description":"JSCS review service for Hound","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jscs","forks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jscs/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jscs/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jscs/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jscs/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jscs/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jscs/releases{/id}","created_at":"2015-10-06T16:46:18Z","updated_at":"2015-12-02T02:08:45Z","pushed_at":"2016-01-14T09:19:42Z","git_url":"git://github.com/thoughtbot/hound-jscs.git","ssh_url":"git@github.com:thoughtbot/hound-jscs.git","clone_url":"https://github.com/thoughtbot/hound-jscs.git","svn_url":"https://github.com/thoughtbot/hound-jscs","homepage":"https://houndci.com","size":12,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"42801514b57f5a18cc4d87b61d0ca7f7efabc207","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":43764089,"name":"hound-jscs","full_name":"thoughtbot/hound-jscs","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/hound-jscs","description":"JSCS review service for Hound","fork":false,"url":"https://api.github.com/repos/thoughtbot/hound-jscs","forks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/forks","keys_url":"https://api.github.com/repos/thoughtbot/hound-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/hound-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/hound-jscs/teams","hooks_url":"https://api.github.com/repos/thoughtbot/hound-jscs/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/hound-jscs/events","assignees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/hound-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/tags","blobs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/hound-jscs/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/hound-jscs/subscription","commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/hound-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/hound-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/hound-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/hound-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/hound-jscs/merges","archive_url":"https://api.github.com/repos/thoughtbot/hound-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/hound-jscs/downloads","issues_url":"https://api.github.com/repos/thoughtbot/hound-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/hound-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/hound-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/hound-jscs/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/hound-jscs/releases{/id}","created_at":"2015-10-06T16:46:18Z","updated_at":"2015-12-02T02:08:45Z","pushed_at":"2016-01-14T09:19:42Z","git_url":"git://github.com/thoughtbot/hound-jscs.git","ssh_url":"git@github.com:thoughtbot/hound-jscs.git","clone_url":"https://github.com/thoughtbot/hound-jscs.git","svn_url":"https://github.com/thoughtbot/hound-jscs","homepage":"https://houndci.com","size":12,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8"},"html":{"href":"https://github.com/thoughtbot/hound-jscs/pull/8"},"issue":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/8"},"comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/hound-jscs/statuses/5f4402e875176f2709124efc9fbd15978438f859"}}}}