{"action":"created","comment":{"url":"https://api.github.com/repos/healthbam/healthbam/pulls/comments/84609405","pull_request_review_id":5376233,"id":84609405,"diff_hunk":"@@ -0,0 +1,115 @@\n+(function (angular, jasmine, beforeEach, describe, it, spyOn) {\n+    \"use strict\";\n+\n+    /* All of the healthBam.organizationList module's tests. */\n+    describe(\"healthBam.organizationList module\", function () {\n+\n+        beforeEach(\n+            function () {\n+                /* Load the module to test. */\n+                angular.mock.module(\"healthBam.organizationList\");\n+            }\n+        );\n+\n+        describe(\"OrganizationListController\", function () {\n+\n+            var organizationList,\n+                $componentController,\n+                locals;\n+\n+            beforeEach(\n+                function () {\n+\n+                    /* Reset variables. */\n+                    locals = {};\n+\n+                    /* Inject dependencies. */\n+                    angular.mock.inject(\n+                        function ($injector) {\n+                            $componentController = $injector.get(\"$componentController\");\n+                            locals.Organization = $injector.get(\"Organization\");\n+                            locals.errorHandlingService = $injector.get(\"errorHandlingService\");\n+                            locals.$log = $injector.get(\"$log\");\n+                            locals.$httpBackend = $injector.get(\"$httpBackend\");\n+                        }\n+                    );\n+\n+                    /* Get the controller for the organizationList component. */\n+                    organizationList = $componentController(\n+                        \"healthBamOrganizationList\",\n+                        locals\n+                    );\n+\n+                    spyOn(locals.errorHandlingService, \"handleError\");\n+                }\n+            );\n+\n+            it(\"should exist\", function () {\n+                organizationList.$onInit();\n+                expect(organizationList).toEqual(jasmine.any(Object));\n+            });\n+\n+            describe(\"$onInit\", function () {\n+\n+                it(\"should log loading debug message\", function () {\n+                    spyOn(locals.$log, \"debug\");\n+                    organizationList.$onInit();\n+                    expect(locals.$log.debug).toHaveBeenCalledWith(\n+                        jasmine.any(String),\n+                        organizationList\n+                    );\n+                });\n+\n+                it(\"should load & expose the list of organizations from server\", function () {\n+\n+                    var list = [\n+                        new locals.Organization(\n+                            {\n+                                id: 1,\n+                                name: \"TestOrganizations\"\n+                            }\n+                        )\n+                    ];\n+\n+                    locals.$httpBackend.expectGET(\n+                        \"api/organizations\"\n+                    ).respond(\n+                        list\n+                    );\n+\n+                    organizationList.$onInit();\n+\n+                    locals.$httpBackend.flush();\n+\n+                    expect(\n+                        organizationList.list\n+                    ).toEqual(\n+                        jasmine.objectContaining(list)\n+                    );\n+\n+                    expect(\n+                        locals.errorHandlingService.handleError\n+                    ).not.toHaveBeenCalled();\n+                });\n+\n+                it(\"should handle error fetching Organizations\", function () {\n+\n+                    locals.$httpBackend.expectGET(\n+                        \"api/organizations\"\n+                    ).respond(\n+                        418","path":"client/src/test/webjar/organization-list/organization-list.component.spec.js","position":100,"original_position":100,"commit_id":"c1eed67d5c5a6059accde9b2ede99c10d39ff996","original_commit_id":"c1eed67d5c5a6059accde9b2ede99c10d39ff996","user":{"login":"RyanBard","id":2766717,"avatar_url":"https://avatars.githubusercontent.com/u/2766717?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanBard","html_url":"https://github.com/RyanBard","followers_url":"https://api.github.com/users/RyanBard/followers","following_url":"https://api.github.com/users/RyanBard/following{/other_user}","gists_url":"https://api.github.com/users/RyanBard/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanBard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanBard/subscriptions","organizations_url":"https://api.github.com/users/RyanBard/orgs","repos_url":"https://api.github.com/users/RyanBard/repos","events_url":"https://api.github.com/users/RyanBard/events{/privacy}","received_events_url":"https://api.github.com/users/RyanBard/received_events","type":"User","site_admin":false},"body":":)","created_at":"2016-10-24T00:25:37Z","updated_at":"2016-10-24T00:25:37Z","html_url":"https://github.com/healthbam/healthbam/pull/210#discussion_r84609405","pull_request_url":"https://api.github.com/repos/healthbam/healthbam/pulls/210","_links":{"self":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/comments/84609405"},"html":{"href":"https://github.com/healthbam/healthbam/pull/210#discussion_r84609405"},"pull_request":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/210"}}},"pull_request":{"url":"https://api.github.com/repos/healthbam/healthbam/pulls/210","id":89856096,"html_url":"https://github.com/healthbam/healthbam/pull/210","diff_url":"https://github.com/healthbam/healthbam/pull/210.diff","patch_url":"https://github.com/healthbam/healthbam/pull/210.patch","issue_url":"https://api.github.com/repos/healthbam/healthbam/issues/210","number":210,"state":"open","locked":false,"title":"Issue143 list organizations","user":{"login":"jlgettings","id":12382280,"avatar_url":"https://avatars.githubusercontent.com/u/12382280?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgettings","html_url":"https://github.com/jlgettings","followers_url":"https://api.github.com/users/jlgettings/followers","following_url":"https://api.github.com/users/jlgettings/following{/other_user}","gists_url":"https://api.github.com/users/jlgettings/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgettings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgettings/subscriptions","organizations_url":"https://api.github.com/users/jlgettings/orgs","repos_url":"https://api.github.com/users/jlgettings/repos","events_url":"https://api.github.com/users/jlgettings/events{/privacy}","received_events_url":"https://api.github.com/users/jlgettings/received_events","type":"User","site_admin":false},"body":"This PR includes two commits - one for setting up the organizations edit/delete page (but that's not finished yet, so it doesn't close the issue), and one committing the .bat and Procfile.windows files I need to build the project on Windows.\r\n\r\nETA: Still trying to figure out how the testing works, but here's a functional Organization List page.","created_at":"2016-10-18T16:52:15Z","updated_at":"2016-10-24T00:25:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37d37399237c9b305370df8ba7e513415be42435","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/healthbam/healthbam/pulls/210/commits","review_comments_url":"https://api.github.com/repos/healthbam/healthbam/pulls/210/comments","review_comment_url":"https://api.github.com/repos/healthbam/healthbam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/healthbam/healthbam/issues/210/comments","statuses_url":"https://api.github.com/repos/healthbam/healthbam/statuses/c1eed67d5c5a6059accde9b2ede99c10d39ff996","head":{"label":"jlgettings:Issue143-list-organizations","ref":"Issue143-list-organizations","sha":"c1eed67d5c5a6059accde9b2ede99c10d39ff996","user":{"login":"jlgettings","id":12382280,"avatar_url":"https://avatars.githubusercontent.com/u/12382280?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgettings","html_url":"https://github.com/jlgettings","followers_url":"https://api.github.com/users/jlgettings/followers","following_url":"https://api.github.com/users/jlgettings/following{/other_user}","gists_url":"https://api.github.com/users/jlgettings/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgettings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgettings/subscriptions","organizations_url":"https://api.github.com/users/jlgettings/orgs","repos_url":"https://api.github.com/users/jlgettings/repos","events_url":"https://api.github.com/users/jlgettings/events{/privacy}","received_events_url":"https://api.github.com/users/jlgettings/received_events","type":"User","site_admin":false},"repo":{"id":68826107,"name":"healthbam","full_name":"jlgettings/healthbam","owner":{"login":"jlgettings","id":12382280,"avatar_url":"https://avatars.githubusercontent.com/u/12382280?v=3","gravatar_id":"","url":"https://api.github.com/users/jlgettings","html_url":"https://github.com/jlgettings","followers_url":"https://api.github.com/users/jlgettings/followers","following_url":"https://api.github.com/users/jlgettings/following{/other_user}","gists_url":"https://api.github.com/users/jlgettings/gists{/gist_id}","starred_url":"https://api.github.com/users/jlgettings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlgettings/subscriptions","organizations_url":"https://api.github.com/users/jlgettings/orgs","repos_url":"https://api.github.com/users/jlgettings/repos","events_url":"https://api.github.com/users/jlgettings/events{/privacy}","received_events_url":"https://api.github.com/users/jlgettings/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlgettings/healthbam","description":"Healthy Mothers, Healthy Babies Coalition of Georgia Programs Map","fork":true,"url":"https://api.github.com/repos/jlgettings/healthbam","forks_url":"https://api.github.com/repos/jlgettings/healthbam/forks","keys_url":"https://api.github.com/repos/jlgettings/healthbam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlgettings/healthbam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlgettings/healthbam/teams","hooks_url":"https://api.github.com/repos/jlgettings/healthbam/hooks","issue_events_url":"https://api.github.com/repos/jlgettings/healthbam/issues/events{/number}","events_url":"https://api.github.com/repos/jlgettings/healthbam/events","assignees_url":"https://api.github.com/repos/jlgettings/healthbam/assignees{/user}","branches_url":"https://api.github.com/repos/jlgettings/healthbam/branches{/branch}","tags_url":"https://api.github.com/repos/jlgettings/healthbam/tags","blobs_url":"https://api.github.com/repos/jlgettings/healthbam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlgettings/healthbam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlgettings/healthbam/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlgettings/healthbam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlgettings/healthbam/statuses/{sha}","languages_url":"https://api.github.com/repos/jlgettings/healthbam/languages","stargazers_url":"https://api.github.com/repos/jlgettings/healthbam/stargazers","contributors_url":"https://api.github.com/repos/jlgettings/healthbam/contributors","subscribers_url":"https://api.github.com/repos/jlgettings/healthbam/subscribers","subscription_url":"https://api.github.com/repos/jlgettings/healthbam/subscription","commits_url":"https://api.github.com/repos/jlgettings/healthbam/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlgettings/healthbam/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlgettings/healthbam/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlgettings/healthbam/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlgettings/healthbam/contents/{+path}","compare_url":"https://api.github.com/repos/jlgettings/healthbam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlgettings/healthbam/merges","archive_url":"https://api.github.com/repos/jlgettings/healthbam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlgettings/healthbam/downloads","issues_url":"https://api.github.com/repos/jlgettings/healthbam/issues{/number}","pulls_url":"https://api.github.com/repos/jlgettings/healthbam/pulls{/number}","milestones_url":"https://api.github.com/repos/jlgettings/healthbam/milestones{/number}","notifications_url":"https://api.github.com/repos/jlgettings/healthbam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlgettings/healthbam/labels{/name}","releases_url":"https://api.github.com/repos/jlgettings/healthbam/releases{/id}","deployments_url":"https://api.github.com/repos/jlgettings/healthbam/deployments","created_at":"2016-09-21T14:37:33Z","updated_at":"2016-09-21T14:37:34Z","pushed_at":"2016-10-24T00:02:25Z","git_url":"git://github.com/jlgettings/healthbam.git","ssh_url":"git@github.com:jlgettings/healthbam.git","clone_url":"https://github.com/jlgettings/healthbam.git","svn_url":"https://github.com/jlgettings/healthbam","homepage":null,"size":504,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"healthbam:master","ref":"master","sha":"6ed247b11dda63bb70fe7aa715fb7d2b1b1f9d33","user":{"login":"healthbam","id":21698178,"avatar_url":"https://avatars.githubusercontent.com/u/21698178?v=3","gravatar_id":"","url":"https://api.github.com/users/healthbam","html_url":"https://github.com/healthbam","followers_url":"https://api.github.com/users/healthbam/followers","following_url":"https://api.github.com/users/healthbam/following{/other_user}","gists_url":"https://api.github.com/users/healthbam/gists{/gist_id}","starred_url":"https://api.github.com/users/healthbam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healthbam/subscriptions","organizations_url":"https://api.github.com/users/healthbam/orgs","repos_url":"https://api.github.com/users/healthbam/repos","events_url":"https://api.github.com/users/healthbam/events{/privacy}","received_events_url":"https://api.github.com/users/healthbam/received_events","type":"Organization","site_admin":false},"repo":{"id":67935826,"name":"healthbam","full_name":"healthbam/healthbam","owner":{"login":"healthbam","id":21698178,"avatar_url":"https://avatars.githubusercontent.com/u/21698178?v=3","gravatar_id":"","url":"https://api.github.com/users/healthbam","html_url":"https://github.com/healthbam","followers_url":"https://api.github.com/users/healthbam/followers","following_url":"https://api.github.com/users/healthbam/following{/other_user}","gists_url":"https://api.github.com/users/healthbam/gists{/gist_id}","starred_url":"https://api.github.com/users/healthbam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healthbam/subscriptions","organizations_url":"https://api.github.com/users/healthbam/orgs","repos_url":"https://api.github.com/users/healthbam/repos","events_url":"https://api.github.com/users/healthbam/events{/privacy}","received_events_url":"https://api.github.com/users/healthbam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/healthbam/healthbam","description":"Healthy Mothers, Healthy Babies Coalition of Georgia Programs Map","fork":false,"url":"https://api.github.com/repos/healthbam/healthbam","forks_url":"https://api.github.com/repos/healthbam/healthbam/forks","keys_url":"https://api.github.com/repos/healthbam/healthbam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/healthbam/healthbam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/healthbam/healthbam/teams","hooks_url":"https://api.github.com/repos/healthbam/healthbam/hooks","issue_events_url":"https://api.github.com/repos/healthbam/healthbam/issues/events{/number}","events_url":"https://api.github.com/repos/healthbam/healthbam/events","assignees_url":"https://api.github.com/repos/healthbam/healthbam/assignees{/user}","branches_url":"https://api.github.com/repos/healthbam/healthbam/branches{/branch}","tags_url":"https://api.github.com/repos/healthbam/healthbam/tags","blobs_url":"https://api.github.com/repos/healthbam/healthbam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/healthbam/healthbam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/healthbam/healthbam/git/refs{/sha}","trees_url":"https://api.github.com/repos/healthbam/healthbam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/healthbam/healthbam/statuses/{sha}","languages_url":"https://api.github.com/repos/healthbam/healthbam/languages","stargazers_url":"https://api.github.com/repos/healthbam/healthbam/stargazers","contributors_url":"https://api.github.com/repos/healthbam/healthbam/contributors","subscribers_url":"https://api.github.com/repos/healthbam/healthbam/subscribers","subscription_url":"https://api.github.com/repos/healthbam/healthbam/subscription","commits_url":"https://api.github.com/repos/healthbam/healthbam/commits{/sha}","git_commits_url":"https://api.github.com/repos/healthbam/healthbam/git/commits{/sha}","comments_url":"https://api.github.com/repos/healthbam/healthbam/comments{/number}","issue_comment_url":"https://api.github.com/repos/healthbam/healthbam/issues/comments{/number}","contents_url":"https://api.github.com/repos/healthbam/healthbam/contents/{+path}","compare_url":"https://api.github.com/repos/healthbam/healthbam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/healthbam/healthbam/merges","archive_url":"https://api.github.com/repos/healthbam/healthbam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/healthbam/healthbam/downloads","issues_url":"https://api.github.com/repos/healthbam/healthbam/issues{/number}","pulls_url":"https://api.github.com/repos/healthbam/healthbam/pulls{/number}","milestones_url":"https://api.github.com/repos/healthbam/healthbam/milestones{/number}","notifications_url":"https://api.github.com/repos/healthbam/healthbam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/healthbam/healthbam/labels{/name}","releases_url":"https://api.github.com/repos/healthbam/healthbam/releases{/id}","deployments_url":"https://api.github.com/repos/healthbam/healthbam/deployments","created_at":"2016-09-11T14:56:30Z","updated_at":"2016-10-16T02:41:20Z","pushed_at":"2016-10-24T00:24:09Z","git_url":"git://github.com/healthbam/healthbam.git","ssh_url":"git@github.com:healthbam/healthbam.git","clone_url":"https://github.com/healthbam/healthbam.git","svn_url":"https://github.com/healthbam/healthbam","homepage":null,"size":508,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":32,"forks":5,"open_issues":32,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/210"},"html":{"href":"https://github.com/healthbam/healthbam/pull/210"},"issue":{"href":"https://api.github.com/repos/healthbam/healthbam/issues/210"},"comments":{"href":"https://api.github.com/repos/healthbam/healthbam/issues/210/comments"},"review_comments":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/210/comments"},"review_comment":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/healthbam/healthbam/pulls/210/commits"},"statuses":{"href":"https://api.github.com/repos/healthbam/healthbam/statuses/c1eed67d5c5a6059accde9b2ede99c10d39ff996"}}}}
{"actor":{"display_login":"RyanBard"}}