{"action":"created","comment":{"url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/comments/55044143","id":55044143,"diff_hunk":"@@ -0,0 +1,22 @@\n+require 'test_helper'\n+\n+module NdrError\n+  # Unit Test Log.\n+  class JavaScriptErrorTest < ActiveSupport::TestCase\n+    test 'should set backtrace' do\n+      params = {\n+        \"message\"=>\"ReferenceError: adfgrdfgkljh is not defined\",\n+        \"source\"=>\"http://localhost:3000\",\n+        \"lineno\"=>\"49\",\n+        \"colno\"=>\"1\",\n+        \"stack\"=>\n+        \"stack_values\\nline 1\\nline 2\\nline 3\"\n+      }\n+      error = JavascriptError.new(params)\n+\n+      assert_equal \"ReferenceError: adfgrdfgkljh is not defined\", error.message","path":"test/unit/ndr_error/javascript_error_test.rb","position":17,"original_position":17,"commit_id":"c0df2c37e6ce1d135f708b84f47aaf3553f0fef1","original_commit_id":"c0df2c37e6ce1d135f708b84f47aaf3553f0fef1","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-03-04T15:35:49Z","updated_at":"2016-03-04T15:35:49Z","html_url":"https://github.com/PublicHealthEngland/ndr_error/pull/8#discussion_r55044143","pull_request_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/comments/55044143"},"html":{"href":"https://github.com/PublicHealthEngland/ndr_error/pull/8#discussion_r55044143"},"pull_request":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8","id":61727805,"html_url":"https://github.com/PublicHealthEngland/ndr_error/pull/8","diff_url":"https://github.com/PublicHealthEngland/ndr_error/pull/8.diff","patch_url":"https://github.com/PublicHealthEngland/ndr_error/pull/8.patch","issue_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/8","number":8,"state":"open","locked":false,"title":"more work","user":{"login":"kylenene","id":10666743,"avatar_url":"https://avatars.githubusercontent.com/u/10666743?v=3","gravatar_id":"","url":"https://api.github.com/users/kylenene","html_url":"https://github.com/kylenene","followers_url":"https://api.github.com/users/kylenene/followers","following_url":"https://api.github.com/users/kylenene/following{/other_user}","gists_url":"https://api.github.com/users/kylenene/gists{/gist_id}","starred_url":"https://api.github.com/users/kylenene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylenene/subscriptions","organizations_url":"https://api.github.com/users/kylenene/orgs","repos_url":"https://api.github.com/users/kylenene/repos","events_url":"https://api.github.com/users/kylenene/events{/privacy}","received_events_url":"https://api.github.com/users/kylenene/received_events","type":"User","site_admin":false},"body":"more work","created_at":"2016-03-04T15:35:41Z","updated_at":"2016-03-04T15:35:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5261e63e4562a9342339cd25fdac539f3e8143f8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8/commits","review_comments_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8/comments","review_comment_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/8/comments","statuses_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/statuses/c0df2c37e6ce1d135f708b84f47aaf3553f0fef1","head":{"label":"kylenene:client_errors","ref":"client_errors","sha":"c0df2c37e6ce1d135f708b84f47aaf3553f0fef1","user":{"login":"kylenene","id":10666743,"avatar_url":"https://avatars.githubusercontent.com/u/10666743?v=3","gravatar_id":"","url":"https://api.github.com/users/kylenene","html_url":"https://github.com/kylenene","followers_url":"https://api.github.com/users/kylenene/followers","following_url":"https://api.github.com/users/kylenene/following{/other_user}","gists_url":"https://api.github.com/users/kylenene/gists{/gist_id}","starred_url":"https://api.github.com/users/kylenene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylenene/subscriptions","organizations_url":"https://api.github.com/users/kylenene/orgs","repos_url":"https://api.github.com/users/kylenene/repos","events_url":"https://api.github.com/users/kylenene/events{/privacy}","received_events_url":"https://api.github.com/users/kylenene/received_events","type":"User","site_admin":false},"repo":{"id":52615083,"name":"ndr_error","full_name":"kylenene/ndr_error","owner":{"login":"kylenene","id":10666743,"avatar_url":"https://avatars.githubusercontent.com/u/10666743?v=3","gravatar_id":"","url":"https://api.github.com/users/kylenene","html_url":"https://github.com/kylenene","followers_url":"https://api.github.com/users/kylenene/followers","following_url":"https://api.github.com/users/kylenene/following{/other_user}","gists_url":"https://api.github.com/users/kylenene/gists{/gist_id}","starred_url":"https://api.github.com/users/kylenene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylenene/subscriptions","organizations_url":"https://api.github.com/users/kylenene/orgs","repos_url":"https://api.github.com/users/kylenene/repos","events_url":"https://api.github.com/users/kylenene/events{/privacy}","received_events_url":"https://api.github.com/users/kylenene/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kylenene/ndr_error","description":"Error logging Rails engine","fork":true,"url":"https://api.github.com/repos/kylenene/ndr_error","forks_url":"https://api.github.com/repos/kylenene/ndr_error/forks","keys_url":"https://api.github.com/repos/kylenene/ndr_error/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kylenene/ndr_error/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kylenene/ndr_error/teams","hooks_url":"https://api.github.com/repos/kylenene/ndr_error/hooks","issue_events_url":"https://api.github.com/repos/kylenene/ndr_error/issues/events{/number}","events_url":"https://api.github.com/repos/kylenene/ndr_error/events","assignees_url":"https://api.github.com/repos/kylenene/ndr_error/assignees{/user}","branches_url":"https://api.github.com/repos/kylenene/ndr_error/branches{/branch}","tags_url":"https://api.github.com/repos/kylenene/ndr_error/tags","blobs_url":"https://api.github.com/repos/kylenene/ndr_error/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kylenene/ndr_error/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kylenene/ndr_error/git/refs{/sha}","trees_url":"https://api.github.com/repos/kylenene/ndr_error/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kylenene/ndr_error/statuses/{sha}","languages_url":"https://api.github.com/repos/kylenene/ndr_error/languages","stargazers_url":"https://api.github.com/repos/kylenene/ndr_error/stargazers","contributors_url":"https://api.github.com/repos/kylenene/ndr_error/contributors","subscribers_url":"https://api.github.com/repos/kylenene/ndr_error/subscribers","subscription_url":"https://api.github.com/repos/kylenene/ndr_error/subscription","commits_url":"https://api.github.com/repos/kylenene/ndr_error/commits{/sha}","git_commits_url":"https://api.github.com/repos/kylenene/ndr_error/git/commits{/sha}","comments_url":"https://api.github.com/repos/kylenene/ndr_error/comments{/number}","issue_comment_url":"https://api.github.com/repos/kylenene/ndr_error/issues/comments{/number}","contents_url":"https://api.github.com/repos/kylenene/ndr_error/contents/{+path}","compare_url":"https://api.github.com/repos/kylenene/ndr_error/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kylenene/ndr_error/merges","archive_url":"https://api.github.com/repos/kylenene/ndr_error/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kylenene/ndr_error/downloads","issues_url":"https://api.github.com/repos/kylenene/ndr_error/issues{/number}","pulls_url":"https://api.github.com/repos/kylenene/ndr_error/pulls{/number}","milestones_url":"https://api.github.com/repos/kylenene/ndr_error/milestones{/number}","notifications_url":"https://api.github.com/repos/kylenene/ndr_error/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kylenene/ndr_error/labels{/name}","releases_url":"https://api.github.com/repos/kylenene/ndr_error/releases{/id}","deployments_url":"https://api.github.com/repos/kylenene/ndr_error/deployments","created_at":"2016-02-26T15:54:16Z","updated_at":"2016-02-26T15:54:16Z","pushed_at":"2016-03-04T15:34:47Z","git_url":"git://github.com/kylenene/ndr_error.git","ssh_url":"git@github.com:kylenene/ndr_error.git","clone_url":"https://github.com/kylenene/ndr_error.git","svn_url":"https://github.com/kylenene/ndr_error","homepage":"","size":327,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"PublicHealthEngland:client_errors","ref":"client_errors","sha":"637df7ef5c6ac9f5683146868d4fc10f5f82fae7","user":{"login":"PublicHealthEngland","id":10867403,"avatar_url":"https://avatars.githubusercontent.com/u/10867403?v=3","gravatar_id":"","url":"https://api.github.com/users/PublicHealthEngland","html_url":"https://github.com/PublicHealthEngland","followers_url":"https://api.github.com/users/PublicHealthEngland/followers","following_url":"https://api.github.com/users/PublicHealthEngland/following{/other_user}","gists_url":"https://api.github.com/users/PublicHealthEngland/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicHealthEngland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicHealthEngland/subscriptions","organizations_url":"https://api.github.com/users/PublicHealthEngland/orgs","repos_url":"https://api.github.com/users/PublicHealthEngland/repos","events_url":"https://api.github.com/users/PublicHealthEngland/events{/privacy}","received_events_url":"https://api.github.com/users/PublicHealthEngland/received_events","type":"Organization","site_admin":false},"repo":{"id":40002586,"name":"ndr_error","full_name":"PublicHealthEngland/ndr_error","owner":{"login":"PublicHealthEngland","id":10867403,"avatar_url":"https://avatars.githubusercontent.com/u/10867403?v=3","gravatar_id":"","url":"https://api.github.com/users/PublicHealthEngland","html_url":"https://github.com/PublicHealthEngland","followers_url":"https://api.github.com/users/PublicHealthEngland/followers","following_url":"https://api.github.com/users/PublicHealthEngland/following{/other_user}","gists_url":"https://api.github.com/users/PublicHealthEngland/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicHealthEngland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicHealthEngland/subscriptions","organizations_url":"https://api.github.com/users/PublicHealthEngland/orgs","repos_url":"https://api.github.com/users/PublicHealthEngland/repos","events_url":"https://api.github.com/users/PublicHealthEngland/events{/privacy}","received_events_url":"https://api.github.com/users/PublicHealthEngland/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PublicHealthEngland/ndr_error","description":"Error logging Rails engine","fork":false,"url":"https://api.github.com/repos/PublicHealthEngland/ndr_error","forks_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/forks","keys_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/teams","hooks_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/hooks","issue_events_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/events{/number}","events_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/events","assignees_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/assignees{/user}","branches_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/branches{/branch}","tags_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/tags","blobs_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/git/refs{/sha}","trees_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/statuses/{sha}","languages_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/languages","stargazers_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/stargazers","contributors_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/contributors","subscribers_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/subscribers","subscription_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/subscription","commits_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/commits{/sha}","git_commits_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/git/commits{/sha}","comments_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/comments{/number}","issue_comment_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/comments{/number}","contents_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/contents/{+path}","compare_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/merges","archive_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/downloads","issues_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues{/number}","pulls_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls{/number}","milestones_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/milestones{/number}","notifications_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/labels{/name}","releases_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/releases{/id}","deployments_url":"https://api.github.com/repos/PublicHealthEngland/ndr_error/deployments","created_at":"2015-07-31T11:37:50Z","updated_at":"2016-01-20T11:05:11Z","pushed_at":"2016-03-04T15:35:42Z","git_url":"git://github.com/PublicHealthEngland/ndr_error.git","ssh_url":"git@github.com:PublicHealthEngland/ndr_error.git","clone_url":"https://github.com/PublicHealthEngland/ndr_error.git","svn_url":"https://github.com/PublicHealthEngland/ndr_error","homepage":"","size":323,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8"},"html":{"href":"https://github.com/PublicHealthEngland/ndr_error/pull/8"},"issue":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/8"},"comments":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/PublicHealthEngland/ndr_error/statuses/c0df2c37e6ce1d135f708b84f47aaf3553f0fef1"}}}}