{"action":"created","comment":{"url":"https://api.github.com/repos/cerner/canadarm/pulls/comments/41991757","id":41991757,"diff_hunk":"@@ -6,15 +6,28 @@ var assert = require('assert'),\n \n describe('Canadarm', function (){\n   describe('consoleLogHandler', function (){\n+    var consoleLogSpy = sinon.spy(console, 'error');\n+\n+    afterEach(function() {\n+      consoleLogSpy.reset();\n+    });\n+\n     it('logs the attributes expected to the console with an = separator', function (){\n-      var consoleLogSpy = sinon.spy(console, 'error'),\n-        fakeLog = {one: 'one', two: 'two', msg: 'msg'},\n-        logValues = '', key;\n+      var fakeLog = {one: 'one', two: 'two', msg: 'msg'};\n \n       Canadarm.Handler.consoleLogHandler(fakeLog);\n \n       assert(consoleLogSpy.calledOnce);\n       assert(consoleLogSpy.calledWith(fakeLog.msg, fakeLog));\n     });\n+\n+    it('logs the attributes expected when the key \"msg\" is undefined', function() {\n+      var fakeLog = {one: 'one', two: 'two'};\n+\n+      Canadarm.Handler.consoleLogHandler(fakeLog);\n+\n+      assert(consoleLogSpy.calledOnce);\n+      assert(consoleLogSpy.calledWith(fakeLog));\n+    });\n   });\n-});\n+});","path":"test/unit/handler/console.js","position":32,"original_position":32,"commit_id":"39ed96ccf41eb1a7118118d257b07f504e413592","original_commit_id":"39ed96ccf41eb1a7118118d257b07f504e413592","user":{"login":"gneatgeek","id":1232730,"avatar_url":"https://avatars.githubusercontent.com/u/1232730?v=3","gravatar_id":"","url":"https://api.github.com/users/gneatgeek","html_url":"https://github.com/gneatgeek","followers_url":"https://api.github.com/users/gneatgeek/followers","following_url":"https://api.github.com/users/gneatgeek/following{/other_user}","gists_url":"https://api.github.com/users/gneatgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/gneatgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gneatgeek/subscriptions","organizations_url":"https://api.github.com/users/gneatgeek/orgs","repos_url":"https://api.github.com/users/gneatgeek/repos","events_url":"https://api.github.com/users/gneatgeek/events{/privacy}","received_events_url":"https://api.github.com/users/gneatgeek/received_events","type":"User","site_admin":false},"body":"@garrypolley already mentioned this, but can a newline be added here?","created_at":"2015-10-14T13:24:50Z","updated_at":"2015-10-14T13:24:50Z","html_url":"https://github.com/cerner/canadarm/pull/17#discussion_r41991757","pull_request_url":"https://api.github.com/repos/cerner/canadarm/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/comments/41991757"},"html":{"href":"https://github.com/cerner/canadarm/pull/17#discussion_r41991757"},"pull_request":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/cerner/canadarm/pulls/17","id":44623166,"html_url":"https://github.com/cerner/canadarm/pull/17","diff_url":"https://github.com/cerner/canadarm/pull/17.diff","patch_url":"https://github.com/cerner/canadarm/pull/17.patch","issue_url":"https://api.github.com/repos/cerner/canadarm/issues/17","number":17,"state":"open","locked":false,"title":"Add check for undefined logAttributes.msg in lib/handler/console.js","user":{"login":"loganom","id":2434012,"avatar_url":"https://avatars.githubusercontent.com/u/2434012?v=3","gravatar_id":"","url":"https://api.github.com/users/loganom","html_url":"https://github.com/loganom","followers_url":"https://api.github.com/users/loganom/followers","following_url":"https://api.github.com/users/loganom/following{/other_user}","gists_url":"https://api.github.com/users/loganom/gists{/gist_id}","starred_url":"https://api.github.com/users/loganom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganom/subscriptions","organizations_url":"https://api.github.com/users/loganom/orgs","repos_url":"https://api.github.com/users/loganom/repos","events_url":"https://api.github.com/users/loganom/events{/privacy}","received_events_url":"https://api.github.com/users/loganom/received_events","type":"User","site_admin":false},"body":"per suggestion from @garrypolley  in #13 ","created_at":"2015-09-10T02:53:36Z","updated_at":"2015-10-14T13:24:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff48e1a6d58ad9018fd3ec4d452ef748179e5978","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cerner/canadarm/pulls/17/commits","review_comments_url":"https://api.github.com/repos/cerner/canadarm/pulls/17/comments","review_comment_url":"https://api.github.com/repos/cerner/canadarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cerner/canadarm/issues/17/comments","statuses_url":"https://api.github.com/repos/cerner/canadarm/statuses/39ed96ccf41eb1a7118118d257b07f504e413592","head":{"label":"loganom:issue13","ref":"issue13","sha":"39ed96ccf41eb1a7118118d257b07f504e413592","user":{"login":"loganom","id":2434012,"avatar_url":"https://avatars.githubusercontent.com/u/2434012?v=3","gravatar_id":"","url":"https://api.github.com/users/loganom","html_url":"https://github.com/loganom","followers_url":"https://api.github.com/users/loganom/followers","following_url":"https://api.github.com/users/loganom/following{/other_user}","gists_url":"https://api.github.com/users/loganom/gists{/gist_id}","starred_url":"https://api.github.com/users/loganom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganom/subscriptions","organizations_url":"https://api.github.com/users/loganom/orgs","repos_url":"https://api.github.com/users/loganom/repos","events_url":"https://api.github.com/users/loganom/events{/privacy}","received_events_url":"https://api.github.com/users/loganom/received_events","type":"User","site_admin":false},"repo":{"id":42213860,"name":"canadarm","full_name":"loganom/canadarm","owner":{"login":"loganom","id":2434012,"avatar_url":"https://avatars.githubusercontent.com/u/2434012?v=3","gravatar_id":"","url":"https://api.github.com/users/loganom","html_url":"https://github.com/loganom","followers_url":"https://api.github.com/users/loganom/followers","following_url":"https://api.github.com/users/loganom/following{/other_user}","gists_url":"https://api.github.com/users/loganom/gists{/gist_id}","starred_url":"https://api.github.com/users/loganom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganom/subscriptions","organizations_url":"https://api.github.com/users/loganom/orgs","repos_url":"https://api.github.com/users/loganom/repos","events_url":"https://api.github.com/users/loganom/events{/privacy}","received_events_url":"https://api.github.com/users/loganom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loganom/canadarm","description":"A JavaScript logger that works for you!","fork":true,"url":"https://api.github.com/repos/loganom/canadarm","forks_url":"https://api.github.com/repos/loganom/canadarm/forks","keys_url":"https://api.github.com/repos/loganom/canadarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loganom/canadarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loganom/canadarm/teams","hooks_url":"https://api.github.com/repos/loganom/canadarm/hooks","issue_events_url":"https://api.github.com/repos/loganom/canadarm/issues/events{/number}","events_url":"https://api.github.com/repos/loganom/canadarm/events","assignees_url":"https://api.github.com/repos/loganom/canadarm/assignees{/user}","branches_url":"https://api.github.com/repos/loganom/canadarm/branches{/branch}","tags_url":"https://api.github.com/repos/loganom/canadarm/tags","blobs_url":"https://api.github.com/repos/loganom/canadarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loganom/canadarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loganom/canadarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/loganom/canadarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loganom/canadarm/statuses/{sha}","languages_url":"https://api.github.com/repos/loganom/canadarm/languages","stargazers_url":"https://api.github.com/repos/loganom/canadarm/stargazers","contributors_url":"https://api.github.com/repos/loganom/canadarm/contributors","subscribers_url":"https://api.github.com/repos/loganom/canadarm/subscribers","subscription_url":"https://api.github.com/repos/loganom/canadarm/subscription","commits_url":"https://api.github.com/repos/loganom/canadarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/loganom/canadarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/loganom/canadarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/loganom/canadarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/loganom/canadarm/contents/{+path}","compare_url":"https://api.github.com/repos/loganom/canadarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loganom/canadarm/merges","archive_url":"https://api.github.com/repos/loganom/canadarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loganom/canadarm/downloads","issues_url":"https://api.github.com/repos/loganom/canadarm/issues{/number}","pulls_url":"https://api.github.com/repos/loganom/canadarm/pulls{/number}","milestones_url":"https://api.github.com/repos/loganom/canadarm/milestones{/number}","notifications_url":"https://api.github.com/repos/loganom/canadarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loganom/canadarm/labels{/name}","releases_url":"https://api.github.com/repos/loganom/canadarm/releases{/id}","created_at":"2015-09-10T01:18:37Z","updated_at":"2015-09-10T01:18:37Z","pushed_at":"2015-09-13T15:30:33Z","git_url":"git://github.com/loganom/canadarm.git","ssh_url":"git@github.com:loganom/canadarm.git","clone_url":"https://github.com/loganom/canadarm.git","svn_url":"https://github.com/loganom/canadarm","homepage":null,"size":208,"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":"cerner:master","ref":"master","sha":"c25380cf82a00c90c809189bb5043cf2a3acc59b","user":{"login":"cerner","id":1873208,"avatar_url":"https://avatars.githubusercontent.com/u/1873208?v=3","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"repo":{"id":36513602,"name":"canadarm","full_name":"cerner/canadarm","owner":{"login":"cerner","id":1873208,"avatar_url":"https://avatars.githubusercontent.com/u/1873208?v=3","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cerner/canadarm","description":"A JavaScript logger that works for you!","fork":false,"url":"https://api.github.com/repos/cerner/canadarm","forks_url":"https://api.github.com/repos/cerner/canadarm/forks","keys_url":"https://api.github.com/repos/cerner/canadarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cerner/canadarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cerner/canadarm/teams","hooks_url":"https://api.github.com/repos/cerner/canadarm/hooks","issue_events_url":"https://api.github.com/repos/cerner/canadarm/issues/events{/number}","events_url":"https://api.github.com/repos/cerner/canadarm/events","assignees_url":"https://api.github.com/repos/cerner/canadarm/assignees{/user}","branches_url":"https://api.github.com/repos/cerner/canadarm/branches{/branch}","tags_url":"https://api.github.com/repos/cerner/canadarm/tags","blobs_url":"https://api.github.com/repos/cerner/canadarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cerner/canadarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cerner/canadarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cerner/canadarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cerner/canadarm/statuses/{sha}","languages_url":"https://api.github.com/repos/cerner/canadarm/languages","stargazers_url":"https://api.github.com/repos/cerner/canadarm/stargazers","contributors_url":"https://api.github.com/repos/cerner/canadarm/contributors","subscribers_url":"https://api.github.com/repos/cerner/canadarm/subscribers","subscription_url":"https://api.github.com/repos/cerner/canadarm/subscription","commits_url":"https://api.github.com/repos/cerner/canadarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cerner/canadarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cerner/canadarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cerner/canadarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cerner/canadarm/contents/{+path}","compare_url":"https://api.github.com/repos/cerner/canadarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cerner/canadarm/merges","archive_url":"https://api.github.com/repos/cerner/canadarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cerner/canadarm/downloads","issues_url":"https://api.github.com/repos/cerner/canadarm/issues{/number}","pulls_url":"https://api.github.com/repos/cerner/canadarm/pulls{/number}","milestones_url":"https://api.github.com/repos/cerner/canadarm/milestones{/number}","notifications_url":"https://api.github.com/repos/cerner/canadarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cerner/canadarm/labels{/name}","releases_url":"https://api.github.com/repos/cerner/canadarm/releases{/id}","created_at":"2015-05-29T15:45:48Z","updated_at":"2015-10-14T12:53:34Z","pushed_at":"2015-09-29T13:19:05Z","git_url":"git://github.com/cerner/canadarm.git","ssh_url":"git@github.com:cerner/canadarm.git","clone_url":"https://github.com/cerner/canadarm.git","svn_url":"https://github.com/cerner/canadarm","homepage":null,"size":345,"stargazers_count":23,"watchers_count":23,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":9,"forks":2,"open_issues":9,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/17"},"html":{"href":"https://github.com/cerner/canadarm/pull/17"},"issue":{"href":"https://api.github.com/repos/cerner/canadarm/issues/17"},"comments":{"href":"https://api.github.com/repos/cerner/canadarm/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cerner/canadarm/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/cerner/canadarm/statuses/39ed96ccf41eb1a7118118d257b07f504e413592"}}}}