{"action":"created","comment":{"url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/comments/74197163","id":74197163,"diff_hunk":"@@ -33,4 +33,20 @@ mochaLoader.addTest(\"calls the function immediately if the sound is paused\", ():\n \n     // Assert\n     chai.expect(num).to.equal(1);\n-});\n\\ No newline at end of file\n+});\n+\n+mochaLoader.addTest(\"doesn't call the function if the sound is not paused and exists\", (): void => {\n+    // Arrange\n+    var AudioPlayer = mocks.mockAudioPlayr();\n+    var num = 0;\n+    var increase = function () {\n+        num += 1;\n+    }\n+\n+    // Act\n+    AudioPlayer.playSound(AudioPlayer.library[mocks.mockSoundName]);\n+    AudioPlayer.addEventImmediate(mocks.mockSoundName, \"loadeddata\", increase);\n+\n+    // Assert\n+    chai.expect(num).to.equal(0);\n+});","path":"test/AudioPlayr/addEventImmediate.ts","position":52,"original_position":31,"commit_id":"9b19cf7fa07ea4505d4207f0cd0f3f5fb308b972","original_commit_id":"9b19cf7fa07ea4505d4207f0cd0f3f5fb308b972","user":{"login":"JoshuaKGoldberg","id":3335181,"avatar_url":"https://avatars.githubusercontent.com/u/3335181?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"body":"What about if it exists and is paused?","created_at":"2016-08-10T07:28:38Z","updated_at":"2016-08-10T07:28:38Z","html_url":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7#discussion_r74197163","pull_request_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/comments/74197163"},"html":{"href":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7#discussion_r74197163"},"pull_request":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7","id":80307192,"html_url":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7","diff_url":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7.diff","patch_url":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7.patch","issue_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/7","number":7,"state":"open","locked":false,"title":"Adding unit tests to AudioPlayr","user":{"login":"gpnoel","id":6756726,"avatar_url":"https://avatars.githubusercontent.com/u/6756726?v=3","gravatar_id":"","url":"https://api.github.com/users/gpnoel","html_url":"https://github.com/gpnoel","followers_url":"https://api.github.com/users/gpnoel/followers","following_url":"https://api.github.com/users/gpnoel/following{/other_user}","gists_url":"https://api.github.com/users/gpnoel/gists{/gist_id}","starred_url":"https://api.github.com/users/gpnoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpnoel/subscriptions","organizations_url":"https://api.github.com/users/gpnoel/orgs","repos_url":"https://api.github.com/users/gpnoel/repos","events_url":"https://api.github.com/users/gpnoel/events{/privacy}","received_events_url":"https://api.github.com/users/gpnoel/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-05T21:06:29Z","updated_at":"2016-08-10T07:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fff4d5885e25eec54f11f259ecd54bb03cd46f1a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7/commits","review_comments_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7/comments","review_comment_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/7/comments","statuses_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/statuses/9b19cf7fa07ea4505d4207f0cd0f3f5fb308b972","head":{"label":"gpnoel:tests","ref":"tests","sha":"9b19cf7fa07ea4505d4207f0cd0f3f5fb308b972","user":{"login":"gpnoel","id":6756726,"avatar_url":"https://avatars.githubusercontent.com/u/6756726?v=3","gravatar_id":"","url":"https://api.github.com/users/gpnoel","html_url":"https://github.com/gpnoel","followers_url":"https://api.github.com/users/gpnoel/followers","following_url":"https://api.github.com/users/gpnoel/following{/other_user}","gists_url":"https://api.github.com/users/gpnoel/gists{/gist_id}","starred_url":"https://api.github.com/users/gpnoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpnoel/subscriptions","organizations_url":"https://api.github.com/users/gpnoel/orgs","repos_url":"https://api.github.com/users/gpnoel/repos","events_url":"https://api.github.com/users/gpnoel/events{/privacy}","received_events_url":"https://api.github.com/users/gpnoel/received_events","type":"User","site_admin":false},"repo":{"id":64959709,"name":"AudioPlayr","full_name":"gpnoel/AudioPlayr","owner":{"login":"gpnoel","id":6756726,"avatar_url":"https://avatars.githubusercontent.com/u/6756726?v=3","gravatar_id":"","url":"https://api.github.com/users/gpnoel","html_url":"https://github.com/gpnoel","followers_url":"https://api.github.com/users/gpnoel/followers","following_url":"https://api.github.com/users/gpnoel/following{/other_user}","gists_url":"https://api.github.com/users/gpnoel/gists{/gist_id}","starred_url":"https://api.github.com/users/gpnoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpnoel/subscriptions","organizations_url":"https://api.github.com/users/gpnoel/orgs","repos_url":"https://api.github.com/users/gpnoel/repos","events_url":"https://api.github.com/users/gpnoel/events{/privacy}","received_events_url":"https://api.github.com/users/gpnoel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gpnoel/AudioPlayr","description":"An audio library to automate preloading and controlled playback of multiple audio tracks, with support for different browsers' preferred file types.","fork":true,"url":"https://api.github.com/repos/gpnoel/AudioPlayr","forks_url":"https://api.github.com/repos/gpnoel/AudioPlayr/forks","keys_url":"https://api.github.com/repos/gpnoel/AudioPlayr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gpnoel/AudioPlayr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gpnoel/AudioPlayr/teams","hooks_url":"https://api.github.com/repos/gpnoel/AudioPlayr/hooks","issue_events_url":"https://api.github.com/repos/gpnoel/AudioPlayr/issues/events{/number}","events_url":"https://api.github.com/repos/gpnoel/AudioPlayr/events","assignees_url":"https://api.github.com/repos/gpnoel/AudioPlayr/assignees{/user}","branches_url":"https://api.github.com/repos/gpnoel/AudioPlayr/branches{/branch}","tags_url":"https://api.github.com/repos/gpnoel/AudioPlayr/tags","blobs_url":"https://api.github.com/repos/gpnoel/AudioPlayr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gpnoel/AudioPlayr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gpnoel/AudioPlayr/git/refs{/sha}","trees_url":"https://api.github.com/repos/gpnoel/AudioPlayr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gpnoel/AudioPlayr/statuses/{sha}","languages_url":"https://api.github.com/repos/gpnoel/AudioPlayr/languages","stargazers_url":"https://api.github.com/repos/gpnoel/AudioPlayr/stargazers","contributors_url":"https://api.github.com/repos/gpnoel/AudioPlayr/contributors","subscribers_url":"https://api.github.com/repos/gpnoel/AudioPlayr/subscribers","subscription_url":"https://api.github.com/repos/gpnoel/AudioPlayr/subscription","commits_url":"https://api.github.com/repos/gpnoel/AudioPlayr/commits{/sha}","git_commits_url":"https://api.github.com/repos/gpnoel/AudioPlayr/git/commits{/sha}","comments_url":"https://api.github.com/repos/gpnoel/AudioPlayr/comments{/number}","issue_comment_url":"https://api.github.com/repos/gpnoel/AudioPlayr/issues/comments{/number}","contents_url":"https://api.github.com/repos/gpnoel/AudioPlayr/contents/{+path}","compare_url":"https://api.github.com/repos/gpnoel/AudioPlayr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gpnoel/AudioPlayr/merges","archive_url":"https://api.github.com/repos/gpnoel/AudioPlayr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gpnoel/AudioPlayr/downloads","issues_url":"https://api.github.com/repos/gpnoel/AudioPlayr/issues{/number}","pulls_url":"https://api.github.com/repos/gpnoel/AudioPlayr/pulls{/number}","milestones_url":"https://api.github.com/repos/gpnoel/AudioPlayr/milestones{/number}","notifications_url":"https://api.github.com/repos/gpnoel/AudioPlayr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gpnoel/AudioPlayr/labels{/name}","releases_url":"https://api.github.com/repos/gpnoel/AudioPlayr/releases{/id}","deployments_url":"https://api.github.com/repos/gpnoel/AudioPlayr/deployments","created_at":"2016-08-04T18:55:41Z","updated_at":"2016-08-04T18:55:43Z","pushed_at":"2016-08-10T02:19:53Z","git_url":"git://github.com/gpnoel/AudioPlayr.git","ssh_url":"git@github.com:gpnoel/AudioPlayr.git","clone_url":"https://github.com/gpnoel/AudioPlayr.git","svn_url":"https://github.com/gpnoel/AudioPlayr","homepage":"","size":154,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"FullScreenShenanigans:master","ref":"master","sha":"a12596de8892ed3f2398e59f0c8e119a373bd701","user":{"login":"FullScreenShenanigans","id":11371535,"avatar_url":"https://avatars.githubusercontent.com/u/11371535?v=3","gravatar_id":"","url":"https://api.github.com/users/FullScreenShenanigans","html_url":"https://github.com/FullScreenShenanigans","followers_url":"https://api.github.com/users/FullScreenShenanigans/followers","following_url":"https://api.github.com/users/FullScreenShenanigans/following{/other_user}","gists_url":"https://api.github.com/users/FullScreenShenanigans/gists{/gist_id}","starred_url":"https://api.github.com/users/FullScreenShenanigans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FullScreenShenanigans/subscriptions","organizations_url":"https://api.github.com/users/FullScreenShenanigans/orgs","repos_url":"https://api.github.com/users/FullScreenShenanigans/repos","events_url":"https://api.github.com/users/FullScreenShenanigans/events{/privacy}","received_events_url":"https://api.github.com/users/FullScreenShenanigans/received_events","type":"Organization","site_admin":false},"repo":{"id":34635742,"name":"AudioPlayr","full_name":"FullScreenShenanigans/AudioPlayr","owner":{"login":"FullScreenShenanigans","id":11371535,"avatar_url":"https://avatars.githubusercontent.com/u/11371535?v=3","gravatar_id":"","url":"https://api.github.com/users/FullScreenShenanigans","html_url":"https://github.com/FullScreenShenanigans","followers_url":"https://api.github.com/users/FullScreenShenanigans/followers","following_url":"https://api.github.com/users/FullScreenShenanigans/following{/other_user}","gists_url":"https://api.github.com/users/FullScreenShenanigans/gists{/gist_id}","starred_url":"https://api.github.com/users/FullScreenShenanigans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FullScreenShenanigans/subscriptions","organizations_url":"https://api.github.com/users/FullScreenShenanigans/orgs","repos_url":"https://api.github.com/users/FullScreenShenanigans/repos","events_url":"https://api.github.com/users/FullScreenShenanigans/events{/privacy}","received_events_url":"https://api.github.com/users/FullScreenShenanigans/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FullScreenShenanigans/AudioPlayr","description":"An audio library to automate preloading and controlled playback of multiple audio tracks, with support for different browsers' preferred file types.","fork":false,"url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr","forks_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/forks","keys_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/teams","hooks_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/hooks","issue_events_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/events{/number}","events_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/events","assignees_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/assignees{/user}","branches_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/branches{/branch}","tags_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/tags","blobs_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/git/refs{/sha}","trees_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/statuses/{sha}","languages_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/languages","stargazers_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/stargazers","contributors_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/contributors","subscribers_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/subscribers","subscription_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/subscription","commits_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/commits{/sha}","git_commits_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/git/commits{/sha}","comments_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/comments{/number}","issue_comment_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/comments{/number}","contents_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/contents/{+path}","compare_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/merges","archive_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/downloads","issues_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues{/number}","pulls_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls{/number}","milestones_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/milestones{/number}","notifications_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/labels{/name}","releases_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/releases{/id}","deployments_url":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/deployments","created_at":"2015-04-26T23:14:15Z","updated_at":"2016-05-18T03:53:47Z","pushed_at":"2016-08-10T02:19:54Z","git_url":"git://github.com/FullScreenShenanigans/AudioPlayr.git","ssh_url":"git@github.com:FullScreenShenanigans/AudioPlayr.git","clone_url":"https://github.com/FullScreenShenanigans/AudioPlayr.git","svn_url":"https://github.com/FullScreenShenanigans/AudioPlayr","homepage":"","size":95,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7"},"html":{"href":"https://github.com/FullScreenShenanigans/AudioPlayr/pull/7"},"issue":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/7"},"comments":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/FullScreenShenanigans/AudioPlayr/statuses/9b19cf7fa07ea4505d4207f0cd0f3f5fb308b972"}}}}
{"actor":{"display_login":"JoshuaKGoldberg"}}