{"action":"created","comment":{"url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/comments/30630420","id":30630420,"diff_hunk":"@@ -0,0 +1,49 @@\n+'use strict';\n+\n+var expect = chai.expect;\n+\n+describe('Dialogs', function() {\n+  var dialogs, clearTriggersSpy, locationUrlSpy;\n+\n+  beforeEach(module('medlinkApp.services'));\n+\n+  beforeEach(module(function($provide) {\n+    var localNotifications = function() {\n+      this.clearAllTriggered = function() {};\n+      clearTriggersSpy = sinon.spy(this, 'clearAllTriggered');\n+    };\n+\n+    var locationMock = function() {\n+      this.url = function(url) {};\n+      locationUrlSpy = sinon.spy(this, 'url');\n+    };\n+\n+    $provide.service('localNotifications', localNotifications);\n+    $provide.service('$location', locationMock);\n+  }));\n+\n+  beforeEach(inject(function(_dialogs_) {\n+    dialogs = _dialogs_;\n+  }));\n+\n+  describe('#handle', function() {\n+    it('clears all triggered notifications', function() {\n+      dialogs.handle();\n+\n+      expect(clearTriggersSpy.callCount).to.equal(1);","path":"test/unit/services/DialogsSpec.js","position":33,"original_position":33,"commit_id":"8211d6914279b8dcc918fda7bc2b09063353dee7","original_commit_id":"8211d6914279b8dcc918fda7bc2b09063353dee7","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"This is intended to be a unit test, so I'm intentionally not testing integration. Also, I'm assuming that the Cordova notification plugin works as advertised, so in my opinion it's enough to just test that it's being called as expected.","created_at":"2015-05-19T18:26:52Z","updated_at":"2015-05-19T18:26:52Z","html_url":"https://github.com/cbitstech/medlink2_app/pull/5#discussion_r30630420","pull_request_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/comments/30630420"},"html":{"href":"https://github.com/cbitstech/medlink2_app/pull/5#discussion_r30630420"},"pull_request":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5","id":35753148,"html_url":"https://github.com/cbitstech/medlink2_app/pull/5","diff_url":"https://github.com/cbitstech/medlink2_app/pull/5.diff","patch_url":"https://github.com/cbitstech/medlink2_app/pull/5.patch","issue_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/5","number":5,"state":"closed","locked":false,"title":"display DB1 when app resumes, capture response","user":{"login":"ericcf","id":58693,"avatar_url":"https://avatars.githubusercontent.com/u/58693?v=3","gravatar_id":"","url":"https://api.github.com/users/ericcf","html_url":"https://github.com/ericcf","followers_url":"https://api.github.com/users/ericcf/followers","following_url":"https://api.github.com/users/ericcf/following{/other_user}","gists_url":"https://api.github.com/users/ericcf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericcf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericcf/subscriptions","organizations_url":"https://api.github.com/users/ericcf/orgs","repos_url":"https://api.github.com/users/ericcf/repos","events_url":"https://api.github.com/users/ericcf/events{/privacy}","received_events_url":"https://api.github.com/users/ericcf/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-19T17:12:55Z","updated_at":"2015-05-19T18:26:52Z","closed_at":"2015-05-19T18:01:03Z","merged_at":"2015-05-19T18:01:03Z","merge_commit_sha":"5c214d2327ae561c3fd511610537a0f609f02082","assignee":{"login":"michaelwehrley","id":526136,"avatar_url":"https://avatars.githubusercontent.com/u/526136?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelwehrley","html_url":"https://github.com/michaelwehrley","followers_url":"https://api.github.com/users/michaelwehrley/followers","following_url":"https://api.github.com/users/michaelwehrley/following{/other_user}","gists_url":"https://api.github.com/users/michaelwehrley/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelwehrley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelwehrley/subscriptions","organizations_url":"https://api.github.com/users/michaelwehrley/orgs","repos_url":"https://api.github.com/users/michaelwehrley/repos","events_url":"https://api.github.com/users/michaelwehrley/events{/privacy}","received_events_url":"https://api.github.com/users/michaelwehrley/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5/commits","review_comments_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5/comments","review_comment_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/5/comments","statuses_url":"https://api.github.com/repos/cbitstech/medlink2_app/statuses/8211d6914279b8dcc918fda7bc2b09063353dee7","head":{"label":"cbitstech:ecf_86159346_db1","ref":"ecf_86159346_db1","sha":"8211d6914279b8dcc918fda7bc2b09063353dee7","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":31752224,"name":"medlink2_app","full_name":"cbitstech/medlink2_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/medlink2_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/medlink2_app","forks_url":"https://api.github.com/repos/cbitstech/medlink2_app/forks","keys_url":"https://api.github.com/repos/cbitstech/medlink2_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/medlink2_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/medlink2_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/medlink2_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/medlink2_app/events","assignees_url":"https://api.github.com/repos/cbitstech/medlink2_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/medlink2_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/medlink2_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/medlink2_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/medlink2_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/medlink2_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/medlink2_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/medlink2_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/medlink2_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/medlink2_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/medlink2_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/medlink2_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/medlink2_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/medlink2_app/merges","archive_url":"https://api.github.com/repos/cbitstech/medlink2_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/medlink2_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/medlink2_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/medlink2_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/medlink2_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/medlink2_app/releases{/id}","created_at":"2015-03-06T04:19:43Z","updated_at":"2015-04-21T16:51:50Z","pushed_at":"2015-05-19T18:01:04Z","git_url":"git://github.com/cbitstech/medlink2_app.git","ssh_url":"git@github.com:cbitstech/medlink2_app.git","clone_url":"https://github.com/cbitstech/medlink2_app.git","svn_url":"https://github.com/cbitstech/medlink2_app","homepage":null,"size":812,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"cbitstech:master","ref":"master","sha":"47808bc3629ad3911e2c6f76fafe46017daf1e6f","user":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"repo":{"id":31752224,"name":"medlink2_app","full_name":"cbitstech/medlink2_app","owner":{"login":"cbitstech","id":864362,"avatar_url":"https://avatars.githubusercontent.com/u/864362?v=3","gravatar_id":"","url":"https://api.github.com/users/cbitstech","html_url":"https://github.com/cbitstech","followers_url":"https://api.github.com/users/cbitstech/followers","following_url":"https://api.github.com/users/cbitstech/following{/other_user}","gists_url":"https://api.github.com/users/cbitstech/gists{/gist_id}","starred_url":"https://api.github.com/users/cbitstech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbitstech/subscriptions","organizations_url":"https://api.github.com/users/cbitstech/orgs","repos_url":"https://api.github.com/users/cbitstech/repos","events_url":"https://api.github.com/users/cbitstech/events{/privacy}","received_events_url":"https://api.github.com/users/cbitstech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cbitstech/medlink2_app","description":"","fork":false,"url":"https://api.github.com/repos/cbitstech/medlink2_app","forks_url":"https://api.github.com/repos/cbitstech/medlink2_app/forks","keys_url":"https://api.github.com/repos/cbitstech/medlink2_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cbitstech/medlink2_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cbitstech/medlink2_app/teams","hooks_url":"https://api.github.com/repos/cbitstech/medlink2_app/hooks","issue_events_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/events{/number}","events_url":"https://api.github.com/repos/cbitstech/medlink2_app/events","assignees_url":"https://api.github.com/repos/cbitstech/medlink2_app/assignees{/user}","branches_url":"https://api.github.com/repos/cbitstech/medlink2_app/branches{/branch}","tags_url":"https://api.github.com/repos/cbitstech/medlink2_app/tags","blobs_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cbitstech/medlink2_app/statuses/{sha}","languages_url":"https://api.github.com/repos/cbitstech/medlink2_app/languages","stargazers_url":"https://api.github.com/repos/cbitstech/medlink2_app/stargazers","contributors_url":"https://api.github.com/repos/cbitstech/medlink2_app/contributors","subscribers_url":"https://api.github.com/repos/cbitstech/medlink2_app/subscribers","subscription_url":"https://api.github.com/repos/cbitstech/medlink2_app/subscription","commits_url":"https://api.github.com/repos/cbitstech/medlink2_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/cbitstech/medlink2_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/cbitstech/medlink2_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/cbitstech/medlink2_app/contents/{+path}","compare_url":"https://api.github.com/repos/cbitstech/medlink2_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cbitstech/medlink2_app/merges","archive_url":"https://api.github.com/repos/cbitstech/medlink2_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cbitstech/medlink2_app/downloads","issues_url":"https://api.github.com/repos/cbitstech/medlink2_app/issues{/number}","pulls_url":"https://api.github.com/repos/cbitstech/medlink2_app/pulls{/number}","milestones_url":"https://api.github.com/repos/cbitstech/medlink2_app/milestones{/number}","notifications_url":"https://api.github.com/repos/cbitstech/medlink2_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cbitstech/medlink2_app/labels{/name}","releases_url":"https://api.github.com/repos/cbitstech/medlink2_app/releases{/id}","created_at":"2015-03-06T04:19:43Z","updated_at":"2015-04-21T16:51:50Z","pushed_at":"2015-05-19T18:01:04Z","git_url":"git://github.com/cbitstech/medlink2_app.git","ssh_url":"git@github.com:cbitstech/medlink2_app.git","clone_url":"https://github.com/cbitstech/medlink2_app.git","svn_url":"https://github.com/cbitstech/medlink2_app","homepage":null,"size":812,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5"},"html":{"href":"https://github.com/cbitstech/medlink2_app/pull/5"},"issue":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/issues/5"},"comments":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/cbitstech/medlink2_app/statuses/8211d6914279b8dcc918fda7bc2b09063353dee7"}}}}