{"action":"created","comment":{"url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments/47784457","id":47784457,"diff_hunk":"@@ -0,0 +1,47 @@\n+\\section{Testing}\n+Her vil vi uddybe de test framework vi har brugt til frontend og backend og komme\n+med eksempler.\n+\\subsection{Jasmine}\n+Jasmine er et test framework til Javascript. Det kommer med en masse funktioner, \n+der gør det overskueligt og nemt at begynde at teste.\n+Noget af det der bliver lagt vægt på i Jasmine er dokumentation og struktur.\n+Et eksempel på en test, her fra vores StatisticsController.spec.js fil\n+\\begin{lstlisting}[caption={StatisticsController.spec.js}, label={lst:StatisticsController}]\n+it('should get the types based on the selected statistic index', function() {\n+    spyOn(ctrl, 'getStatsTypes').and.callThrough();\n+\n+    statistic = { type : ['someType'] }\n+\n+    ctrl.getStatsTypes(statistic);\n+\n+    expect(ctrl.getStatsTypes).toHaveBeenCalledWith(statistic);\n+    expect(setActiveDropdownValue).toHaveBeenCalled;\n+    expect(ctrl.activeStatisticTypeList[0]).toBe('someType');\n+});\n+\\end{lstlisting}\n+i Listing~\\ref{lst:StatisticsController} starter vi med en beskrivelse af hvad testen gør, her går den ind og og kalder getStatsTypes i vores controller","path":"documents/testing.tex","position":null,"original_position":22,"commit_id":"eed6b8cdfde249f7f1ad2a167daa44355626a9c5","original_commit_id":"39f75ce70885dbe51af3e7d88eddfc83dd3e9921","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"body":"Synes det er rimeligt talesprog","created_at":"2015-12-16T14:54:28Z","updated_at":"2015-12-16T14:54:28Z","html_url":"https://github.com/ckr123/Hovedopgave/pull/45#discussion_r47784457","pull_request_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments/47784457"},"html":{"href":"https://github.com/ckr123/Hovedopgave/pull/45#discussion_r47784457"},"pull_request":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45","id":53695891,"html_url":"https://github.com/ckr123/Hovedopgave/pull/45","diff_url":"https://github.com/ckr123/Hovedopgave/pull/45.diff","patch_url":"https://github.com/ckr123/Hovedopgave/pull/45.patch","issue_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/45","number":45,"state":"open","locked":false,"title":"added testing section","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-15T12:18:43Z","updated_at":"2015-12-16T14:54:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f19264f05639f7c101dc9814678eb2de2ed714f","assignee":{"login":"Munk91","id":5628524,"avatar_url":"https://avatars.githubusercontent.com/u/5628524?v=3","gravatar_id":"","url":"https://api.github.com/users/Munk91","html_url":"https://github.com/Munk91","followers_url":"https://api.github.com/users/Munk91/followers","following_url":"https://api.github.com/users/Munk91/following{/other_user}","gists_url":"https://api.github.com/users/Munk91/gists{/gist_id}","starred_url":"https://api.github.com/users/Munk91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munk91/subscriptions","organizations_url":"https://api.github.com/users/Munk91/orgs","repos_url":"https://api.github.com/users/Munk91/repos","events_url":"https://api.github.com/users/Munk91/events{/privacy}","received_events_url":"https://api.github.com/users/Munk91/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45/commits","review_comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45/comments","review_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/45/comments","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/eed6b8cdfde249f7f1ad2a167daa44355626a9c5","head":{"label":"ckr123:report-testing","ref":"report-testing","sha":"eed6b8cdfde249f7f1ad2a167daa44355626a9c5","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"repo":{"id":45062896,"name":"Hovedopgave","full_name":"ckr123/Hovedopgave","owner":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckr123/Hovedopgave","description":"","fork":false,"url":"https://api.github.com/repos/ckr123/Hovedopgave","forks_url":"https://api.github.com/repos/ckr123/Hovedopgave/forks","keys_url":"https://api.github.com/repos/ckr123/Hovedopgave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckr123/Hovedopgave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckr123/Hovedopgave/teams","hooks_url":"https://api.github.com/repos/ckr123/Hovedopgave/hooks","issue_events_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/events{/number}","events_url":"https://api.github.com/repos/ckr123/Hovedopgave/events","assignees_url":"https://api.github.com/repos/ckr123/Hovedopgave/assignees{/user}","branches_url":"https://api.github.com/repos/ckr123/Hovedopgave/branches{/branch}","tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/tags","blobs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/{sha}","languages_url":"https://api.github.com/repos/ckr123/Hovedopgave/languages","stargazers_url":"https://api.github.com/repos/ckr123/Hovedopgave/stargazers","contributors_url":"https://api.github.com/repos/ckr123/Hovedopgave/contributors","subscribers_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscribers","subscription_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscription","commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckr123/Hovedopgave/contents/{+path}","compare_url":"https://api.github.com/repos/ckr123/Hovedopgave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckr123/Hovedopgave/merges","archive_url":"https://api.github.com/repos/ckr123/Hovedopgave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckr123/Hovedopgave/downloads","issues_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues{/number}","pulls_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls{/number}","milestones_url":"https://api.github.com/repos/ckr123/Hovedopgave/milestones{/number}","notifications_url":"https://api.github.com/repos/ckr123/Hovedopgave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckr123/Hovedopgave/labels{/name}","releases_url":"https://api.github.com/repos/ckr123/Hovedopgave/releases{/id}","created_at":"2015-10-27T18:54:01Z","updated_at":"2015-11-04T13:30:51Z","pushed_at":"2015-12-16T14:54:08Z","git_url":"git://github.com/ckr123/Hovedopgave.git","ssh_url":"git@github.com:ckr123/Hovedopgave.git","clone_url":"https://github.com/ckr123/Hovedopgave.git","svn_url":"https://github.com/ckr123/Hovedopgave","homepage":null,"size":44710,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"ckr123:master","ref":"master","sha":"61f81a593ae4018ba4a15560917574effa0e51e6","user":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"repo":{"id":45062896,"name":"Hovedopgave","full_name":"ckr123/Hovedopgave","owner":{"login":"ckr123","id":5929074,"avatar_url":"https://avatars.githubusercontent.com/u/5929074?v=3","gravatar_id":"","url":"https://api.github.com/users/ckr123","html_url":"https://github.com/ckr123","followers_url":"https://api.github.com/users/ckr123/followers","following_url":"https://api.github.com/users/ckr123/following{/other_user}","gists_url":"https://api.github.com/users/ckr123/gists{/gist_id}","starred_url":"https://api.github.com/users/ckr123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckr123/subscriptions","organizations_url":"https://api.github.com/users/ckr123/orgs","repos_url":"https://api.github.com/users/ckr123/repos","events_url":"https://api.github.com/users/ckr123/events{/privacy}","received_events_url":"https://api.github.com/users/ckr123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ckr123/Hovedopgave","description":"","fork":false,"url":"https://api.github.com/repos/ckr123/Hovedopgave","forks_url":"https://api.github.com/repos/ckr123/Hovedopgave/forks","keys_url":"https://api.github.com/repos/ckr123/Hovedopgave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ckr123/Hovedopgave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ckr123/Hovedopgave/teams","hooks_url":"https://api.github.com/repos/ckr123/Hovedopgave/hooks","issue_events_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/events{/number}","events_url":"https://api.github.com/repos/ckr123/Hovedopgave/events","assignees_url":"https://api.github.com/repos/ckr123/Hovedopgave/assignees{/user}","branches_url":"https://api.github.com/repos/ckr123/Hovedopgave/branches{/branch}","tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/tags","blobs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/refs{/sha}","trees_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/{sha}","languages_url":"https://api.github.com/repos/ckr123/Hovedopgave/languages","stargazers_url":"https://api.github.com/repos/ckr123/Hovedopgave/stargazers","contributors_url":"https://api.github.com/repos/ckr123/Hovedopgave/contributors","subscribers_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscribers","subscription_url":"https://api.github.com/repos/ckr123/Hovedopgave/subscription","commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/commits{/sha}","git_commits_url":"https://api.github.com/repos/ckr123/Hovedopgave/git/commits{/sha}","comments_url":"https://api.github.com/repos/ckr123/Hovedopgave/comments{/number}","issue_comment_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues/comments{/number}","contents_url":"https://api.github.com/repos/ckr123/Hovedopgave/contents/{+path}","compare_url":"https://api.github.com/repos/ckr123/Hovedopgave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ckr123/Hovedopgave/merges","archive_url":"https://api.github.com/repos/ckr123/Hovedopgave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ckr123/Hovedopgave/downloads","issues_url":"https://api.github.com/repos/ckr123/Hovedopgave/issues{/number}","pulls_url":"https://api.github.com/repos/ckr123/Hovedopgave/pulls{/number}","milestones_url":"https://api.github.com/repos/ckr123/Hovedopgave/milestones{/number}","notifications_url":"https://api.github.com/repos/ckr123/Hovedopgave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ckr123/Hovedopgave/labels{/name}","releases_url":"https://api.github.com/repos/ckr123/Hovedopgave/releases{/id}","created_at":"2015-10-27T18:54:01Z","updated_at":"2015-11-04T13:30:51Z","pushed_at":"2015-12-16T14:54:08Z","git_url":"git://github.com/ckr123/Hovedopgave.git","ssh_url":"git@github.com:ckr123/Hovedopgave.git","clone_url":"https://github.com/ckr123/Hovedopgave.git","svn_url":"https://github.com/ckr123/Hovedopgave","homepage":null,"size":44710,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45"},"html":{"href":"https://github.com/ckr123/Hovedopgave/pull/45"},"issue":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/issues/45"},"comments":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/ckr123/Hovedopgave/statuses/eed6b8cdfde249f7f1ad2a167daa44355626a9c5"}}}}