{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments/30878655","id":30878655,"diff_hunk":"@@ -0,0 +1,92 @@\n+'use strict';\n+\n+describe('Service: Basket', function () {\n+\n+  // load the service's module\n+  beforeEach(module('tmaClientApp'));\n+\n+  // instantiate service\n+  var mockBasket;\n+\n+  beforeEach(inject(function(Basket) {\n+    mockBasket = Basket;\n+  }));\n+\n+  it('should initially be empty', function(){\n+    expect(mockBasket.count()).toBe(0);\n+  });\n+\n+  describe('Basket.get()', function() {\n+    it('should have a get function', function() {\n+      expect(angular.isFunction(mockBasket.get)).toBe(true);","path":"test/spec/services/basket.js","position":21,"original_position":21,"commit_id":"42e5478a7509c166e16aa806728fc3a96e7405a9","original_commit_id":"42e5478a7509c166e16aa806728fc3a96e7405a9","user":{"login":"yggie","id":2663402,"avatar_url":"https://avatars.githubusercontent.com/u/2663402?v=3","gravatar_id":"","url":"https://api.github.com/users/yggie","html_url":"https://github.com/yggie","followers_url":"https://api.github.com/users/yggie/followers","following_url":"https://api.github.com/users/yggie/following{/other_user}","gists_url":"https://api.github.com/users/yggie/gists{/gist_id}","starred_url":"https://api.github.com/users/yggie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yggie/subscriptions","organizations_url":"https://api.github.com/users/yggie/orgs","repos_url":"https://api.github.com/users/yggie/repos","events_url":"https://api.github.com/users/yggie/events{/privacy}","received_events_url":"https://api.github.com/users/yggie/received_events","type":"User","site_admin":false},"body":"it is better to describe what the `get` does than whether it exists, so again, something like:\r\n\r\n```javascript\r\nexpect(mockBasket.get()).toEqual(...)\r\n```","created_at":"2015-05-22T08:49:13Z","updated_at":"2015-05-22T08:49:13Z","html_url":"https://github.com/AgileVentures/TMA-client/pull/9#discussion_r30878655","pull_request_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments/30878655"},"html":{"href":"https://github.com/AgileVentures/TMA-client/pull/9#discussion_r30878655"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9","id":35062687,"html_url":"https://github.com/AgileVentures/TMA-client/pull/9","diff_url":"https://github.com/AgileVentures/TMA-client/pull/9.diff","patch_url":"https://github.com/AgileVentures/TMA-client/pull/9.patch","issue_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/9","number":9,"state":"open","locked":false,"title":"Shopcart","user":{"login":"achock","id":2363146,"avatar_url":"https://avatars.githubusercontent.com/u/2363146?v=3","gravatar_id":"","url":"https://api.github.com/users/achock","html_url":"https://github.com/achock","followers_url":"https://api.github.com/users/achock/followers","following_url":"https://api.github.com/users/achock/following{/other_user}","gists_url":"https://api.github.com/users/achock/gists{/gist_id}","starred_url":"https://api.github.com/users/achock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achock/subscriptions","organizations_url":"https://api.github.com/users/achock/orgs","repos_url":"https://api.github.com/users/achock/repos","events_url":"https://api.github.com/users/achock/events{/privacy}","received_events_url":"https://api.github.com/users/achock/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-09T06:54:17Z","updated_at":"2015-05-22T08:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"259f02eb5ed1482bc49da9b3e99fabc4d0889f0e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/9/comments","statuses_url":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/42e5478a7509c166e16aa806728fc3a96e7405a9","head":{"label":"achock:shopcart","ref":"shopcart","sha":"42e5478a7509c166e16aa806728fc3a96e7405a9","user":{"login":"achock","id":2363146,"avatar_url":"https://avatars.githubusercontent.com/u/2363146?v=3","gravatar_id":"","url":"https://api.github.com/users/achock","html_url":"https://github.com/achock","followers_url":"https://api.github.com/users/achock/followers","following_url":"https://api.github.com/users/achock/following{/other_user}","gists_url":"https://api.github.com/users/achock/gists{/gist_id}","starred_url":"https://api.github.com/users/achock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achock/subscriptions","organizations_url":"https://api.github.com/users/achock/orgs","repos_url":"https://api.github.com/users/achock/repos","events_url":"https://api.github.com/users/achock/events{/privacy}","received_events_url":"https://api.github.com/users/achock/received_events","type":"User","site_admin":false},"repo":{"id":34977331,"name":"TMA-client","full_name":"achock/TMA-client","owner":{"login":"achock","id":2363146,"avatar_url":"https://avatars.githubusercontent.com/u/2363146?v=3","gravatar_id":"","url":"https://api.github.com/users/achock","html_url":"https://github.com/achock","followers_url":"https://api.github.com/users/achock/followers","following_url":"https://api.github.com/users/achock/following{/other_user}","gists_url":"https://api.github.com/users/achock/gists{/gist_id}","starred_url":"https://api.github.com/users/achock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/achock/subscriptions","organizations_url":"https://api.github.com/users/achock/orgs","repos_url":"https://api.github.com/users/achock/repos","events_url":"https://api.github.com/users/achock/events{/privacy}","received_events_url":"https://api.github.com/users/achock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/achock/TMA-client","description":"Client application for TakeMeAway API","fork":true,"url":"https://api.github.com/repos/achock/TMA-client","forks_url":"https://api.github.com/repos/achock/TMA-client/forks","keys_url":"https://api.github.com/repos/achock/TMA-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/achock/TMA-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/achock/TMA-client/teams","hooks_url":"https://api.github.com/repos/achock/TMA-client/hooks","issue_events_url":"https://api.github.com/repos/achock/TMA-client/issues/events{/number}","events_url":"https://api.github.com/repos/achock/TMA-client/events","assignees_url":"https://api.github.com/repos/achock/TMA-client/assignees{/user}","branches_url":"https://api.github.com/repos/achock/TMA-client/branches{/branch}","tags_url":"https://api.github.com/repos/achock/TMA-client/tags","blobs_url":"https://api.github.com/repos/achock/TMA-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/achock/TMA-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/achock/TMA-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/achock/TMA-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/achock/TMA-client/statuses/{sha}","languages_url":"https://api.github.com/repos/achock/TMA-client/languages","stargazers_url":"https://api.github.com/repos/achock/TMA-client/stargazers","contributors_url":"https://api.github.com/repos/achock/TMA-client/contributors","subscribers_url":"https://api.github.com/repos/achock/TMA-client/subscribers","subscription_url":"https://api.github.com/repos/achock/TMA-client/subscription","commits_url":"https://api.github.com/repos/achock/TMA-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/achock/TMA-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/achock/TMA-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/achock/TMA-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/achock/TMA-client/contents/{+path}","compare_url":"https://api.github.com/repos/achock/TMA-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/achock/TMA-client/merges","archive_url":"https://api.github.com/repos/achock/TMA-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/achock/TMA-client/downloads","issues_url":"https://api.github.com/repos/achock/TMA-client/issues{/number}","pulls_url":"https://api.github.com/repos/achock/TMA-client/pulls{/number}","milestones_url":"https://api.github.com/repos/achock/TMA-client/milestones{/number}","notifications_url":"https://api.github.com/repos/achock/TMA-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/achock/TMA-client/labels{/name}","releases_url":"https://api.github.com/repos/achock/TMA-client/releases{/id}","created_at":"2015-05-03T07:18:25Z","updated_at":"2015-05-05T12:00:37Z","pushed_at":"2015-05-21T14:45:47Z","git_url":"git://github.com/achock/TMA-client.git","ssh_url":"git@github.com:achock/TMA-client.git","clone_url":"https://github.com/achock/TMA-client.git","svn_url":"https://github.com/achock/TMA-client","homepage":null,"size":309,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"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":0,"default_branch":"develop"}},"base":{"label":"AgileVentures:develop","ref":"develop","sha":"55cc73176487cc3fcc84cc10f62a9006fb3dbf79","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":34601545,"name":"TMA-client","full_name":"AgileVentures/TMA-client","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/TMA-client","description":"Client application for TakeMeAway API","fork":false,"url":"https://api.github.com/repos/AgileVentures/TMA-client","forks_url":"https://api.github.com/repos/AgileVentures/TMA-client/forks","keys_url":"https://api.github.com/repos/AgileVentures/TMA-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/TMA-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/TMA-client/teams","hooks_url":"https://api.github.com/repos/AgileVentures/TMA-client/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/TMA-client/events","assignees_url":"https://api.github.com/repos/AgileVentures/TMA-client/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/TMA-client/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/TMA-client/tags","blobs_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/TMA-client/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/TMA-client/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/TMA-client/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/TMA-client/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/TMA-client/subscription","commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/TMA-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/TMA-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/TMA-client/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/TMA-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/TMA-client/merges","archive_url":"https://api.github.com/repos/AgileVentures/TMA-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/TMA-client/downloads","issues_url":"https://api.github.com/repos/AgileVentures/TMA-client/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/TMA-client/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/TMA-client/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/TMA-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/TMA-client/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/TMA-client/releases{/id}","created_at":"2015-04-26T07:03:12Z","updated_at":"2015-05-08T08:58:56Z","pushed_at":"2015-05-21T14:45:47Z","git_url":"git://github.com/AgileVentures/TMA-client.git","ssh_url":"git@github.com:AgileVentures/TMA-client.git","clone_url":"https://github.com/AgileVentures/TMA-client.git","svn_url":"https://github.com/AgileVentures/TMA-client","homepage":null,"size":363,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9"},"html":{"href":"https://github.com/AgileVentures/TMA-client/pull/9"},"issue":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/issues/9"},"comments":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/TMA-client/statuses/42e5478a7509c166e16aa806728fc3a96e7405a9"}}}}