{"action":"closed","number":52,"pull_request":{"url":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52","id":65907669,"html_url":"https://github.com/jprichardson/electron-mocha/pull/52","diff_url":"https://github.com/jprichardson/electron-mocha/pull/52.diff","patch_url":"https://github.com/jprichardson/electron-mocha/pull/52.patch","issue_url":"https://api.github.com/repos/jprichardson/electron-mocha/issues/52","number":52,"state":"closed","locked":false,"title":"Add arbitrary scripts to renderer html page with --scripts option","user":{"login":"orbitbot","id":2631164,"avatar_url":"https://avatars.githubusercontent.com/u/2631164?v=3","gravatar_id":"","url":"https://api.github.com/users/orbitbot","html_url":"https://github.com/orbitbot","followers_url":"https://api.github.com/users/orbitbot/followers","following_url":"https://api.github.com/users/orbitbot/following{/other_user}","gists_url":"https://api.github.com/users/orbitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orbitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbitbot/subscriptions","organizations_url":"https://api.github.com/users/orbitbot/orgs","repos_url":"https://api.github.com/users/orbitbot/repos","events_url":"https://api.github.com/users/orbitbot/events{/privacy}","received_events_url":"https://api.github.com/users/orbitbot/received_events","type":"User","site_admin":false},"body":"This is a simplification of [a previous PR](https://github.com/jprichardson/electron-mocha/pull/45), based on suggestions in the discussion there.\r\n\r\nAdds arbitrary browser scripts specified on the command line to the html page loaded by the renderer process for test runs. Essentially allows to use browser-only scripts (without CommonJS or UMD support) in test runs.  `mocha.run` is called only after all scripts have been loaded to ensure correct execution.\r\n\r\nUsage is `electron-mocha --renderer --scripts <path 1>,<path 2>,<further paths...> ./tests`, paths should be relative to the working directory from where `electron-mocha` is launched.\r\n\r\nThe order of the scripts files is the same as provided to `electron-mocha`, so if any files have internal dependencies these need to be in the order they would appear concatenated or as individual script tags on a html page.","created_at":"2016-04-10T11:16:55Z","updated_at":"2016-04-10T16:15:42Z","closed_at":"2016-04-10T16:15:42Z","merged_at":null,"merge_commit_sha":"f825310711cc4012d151ae11d102df8de052defe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52/commits","review_comments_url":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52/comments","review_comment_url":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jprichardson/electron-mocha/issues/52/comments","statuses_url":"https://api.github.com/repos/jprichardson/electron-mocha/statuses/a52dd1120932f4e39d8078478f0636c4a820567c","head":{"label":"orbitbot:load-scripts","ref":"load-scripts","sha":"a52dd1120932f4e39d8078478f0636c4a820567c","user":{"login":"orbitbot","id":2631164,"avatar_url":"https://avatars.githubusercontent.com/u/2631164?v=3","gravatar_id":"","url":"https://api.github.com/users/orbitbot","html_url":"https://github.com/orbitbot","followers_url":"https://api.github.com/users/orbitbot/followers","following_url":"https://api.github.com/users/orbitbot/following{/other_user}","gists_url":"https://api.github.com/users/orbitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orbitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbitbot/subscriptions","organizations_url":"https://api.github.com/users/orbitbot/orgs","repos_url":"https://api.github.com/users/orbitbot/repos","events_url":"https://api.github.com/users/orbitbot/events{/privacy}","received_events_url":"https://api.github.com/users/orbitbot/received_events","type":"User","site_admin":false},"repo":{"id":53219600,"name":"electron-mocha","full_name":"orbitbot/electron-mocha","owner":{"login":"orbitbot","id":2631164,"avatar_url":"https://avatars.githubusercontent.com/u/2631164?v=3","gravatar_id":"","url":"https://api.github.com/users/orbitbot","html_url":"https://github.com/orbitbot","followers_url":"https://api.github.com/users/orbitbot/followers","following_url":"https://api.github.com/users/orbitbot/following{/other_user}","gists_url":"https://api.github.com/users/orbitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/orbitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbitbot/subscriptions","organizations_url":"https://api.github.com/users/orbitbot/orgs","repos_url":"https://api.github.com/users/orbitbot/repos","events_url":"https://api.github.com/users/orbitbot/events{/privacy}","received_events_url":"https://api.github.com/users/orbitbot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/orbitbot/electron-mocha","description":"Run Mocha tests in Electron","fork":true,"url":"https://api.github.com/repos/orbitbot/electron-mocha","forks_url":"https://api.github.com/repos/orbitbot/electron-mocha/forks","keys_url":"https://api.github.com/repos/orbitbot/electron-mocha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orbitbot/electron-mocha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orbitbot/electron-mocha/teams","hooks_url":"https://api.github.com/repos/orbitbot/electron-mocha/hooks","issue_events_url":"https://api.github.com/repos/orbitbot/electron-mocha/issues/events{/number}","events_url":"https://api.github.com/repos/orbitbot/electron-mocha/events","assignees_url":"https://api.github.com/repos/orbitbot/electron-mocha/assignees{/user}","branches_url":"https://api.github.com/repos/orbitbot/electron-mocha/branches{/branch}","tags_url":"https://api.github.com/repos/orbitbot/electron-mocha/tags","blobs_url":"https://api.github.com/repos/orbitbot/electron-mocha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orbitbot/electron-mocha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orbitbot/electron-mocha/git/refs{/sha}","trees_url":"https://api.github.com/repos/orbitbot/electron-mocha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orbitbot/electron-mocha/statuses/{sha}","languages_url":"https://api.github.com/repos/orbitbot/electron-mocha/languages","stargazers_url":"https://api.github.com/repos/orbitbot/electron-mocha/stargazers","contributors_url":"https://api.github.com/repos/orbitbot/electron-mocha/contributors","subscribers_url":"https://api.github.com/repos/orbitbot/electron-mocha/subscribers","subscription_url":"https://api.github.com/repos/orbitbot/electron-mocha/subscription","commits_url":"https://api.github.com/repos/orbitbot/electron-mocha/commits{/sha}","git_commits_url":"https://api.github.com/repos/orbitbot/electron-mocha/git/commits{/sha}","comments_url":"https://api.github.com/repos/orbitbot/electron-mocha/comments{/number}","issue_comment_url":"https://api.github.com/repos/orbitbot/electron-mocha/issues/comments{/number}","contents_url":"https://api.github.com/repos/orbitbot/electron-mocha/contents/{+path}","compare_url":"https://api.github.com/repos/orbitbot/electron-mocha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orbitbot/electron-mocha/merges","archive_url":"https://api.github.com/repos/orbitbot/electron-mocha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orbitbot/electron-mocha/downloads","issues_url":"https://api.github.com/repos/orbitbot/electron-mocha/issues{/number}","pulls_url":"https://api.github.com/repos/orbitbot/electron-mocha/pulls{/number}","milestones_url":"https://api.github.com/repos/orbitbot/electron-mocha/milestones{/number}","notifications_url":"https://api.github.com/repos/orbitbot/electron-mocha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orbitbot/electron-mocha/labels{/name}","releases_url":"https://api.github.com/repos/orbitbot/electron-mocha/releases{/id}","deployments_url":"https://api.github.com/repos/orbitbot/electron-mocha/deployments","created_at":"2016-03-05T19:36:44Z","updated_at":"2016-03-05T19:36:45Z","pushed_at":"2016-04-10T11:08:09Z","git_url":"git://github.com/orbitbot/electron-mocha.git","ssh_url":"git@github.com:orbitbot/electron-mocha.git","clone_url":"https://github.com/orbitbot/electron-mocha.git","svn_url":"https://github.com/orbitbot/electron-mocha","homepage":null,"size":406,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"jprichardson:master","ref":"master","sha":"c373a3c9152494089c7f2494daebb931f7d685ff","user":{"login":"jprichardson","id":150063,"avatar_url":"https://avatars.githubusercontent.com/u/150063?v=3","gravatar_id":"","url":"https://api.github.com/users/jprichardson","html_url":"https://github.com/jprichardson","followers_url":"https://api.github.com/users/jprichardson/followers","following_url":"https://api.github.com/users/jprichardson/following{/other_user}","gists_url":"https://api.github.com/users/jprichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/jprichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprichardson/subscriptions","organizations_url":"https://api.github.com/users/jprichardson/orgs","repos_url":"https://api.github.com/users/jprichardson/repos","events_url":"https://api.github.com/users/jprichardson/events{/privacy}","received_events_url":"https://api.github.com/users/jprichardson/received_events","type":"User","site_admin":false},"repo":{"id":38903992,"name":"electron-mocha","full_name":"jprichardson/electron-mocha","owner":{"login":"jprichardson","id":150063,"avatar_url":"https://avatars.githubusercontent.com/u/150063?v=3","gravatar_id":"","url":"https://api.github.com/users/jprichardson","html_url":"https://github.com/jprichardson","followers_url":"https://api.github.com/users/jprichardson/followers","following_url":"https://api.github.com/users/jprichardson/following{/other_user}","gists_url":"https://api.github.com/users/jprichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/jprichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jprichardson/subscriptions","organizations_url":"https://api.github.com/users/jprichardson/orgs","repos_url":"https://api.github.com/users/jprichardson/repos","events_url":"https://api.github.com/users/jprichardson/events{/privacy}","received_events_url":"https://api.github.com/users/jprichardson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jprichardson/electron-mocha","description":"Run Mocha tests in Electron","fork":false,"url":"https://api.github.com/repos/jprichardson/electron-mocha","forks_url":"https://api.github.com/repos/jprichardson/electron-mocha/forks","keys_url":"https://api.github.com/repos/jprichardson/electron-mocha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jprichardson/electron-mocha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jprichardson/electron-mocha/teams","hooks_url":"https://api.github.com/repos/jprichardson/electron-mocha/hooks","issue_events_url":"https://api.github.com/repos/jprichardson/electron-mocha/issues/events{/number}","events_url":"https://api.github.com/repos/jprichardson/electron-mocha/events","assignees_url":"https://api.github.com/repos/jprichardson/electron-mocha/assignees{/user}","branches_url":"https://api.github.com/repos/jprichardson/electron-mocha/branches{/branch}","tags_url":"https://api.github.com/repos/jprichardson/electron-mocha/tags","blobs_url":"https://api.github.com/repos/jprichardson/electron-mocha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jprichardson/electron-mocha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jprichardson/electron-mocha/git/refs{/sha}","trees_url":"https://api.github.com/repos/jprichardson/electron-mocha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jprichardson/electron-mocha/statuses/{sha}","languages_url":"https://api.github.com/repos/jprichardson/electron-mocha/languages","stargazers_url":"https://api.github.com/repos/jprichardson/electron-mocha/stargazers","contributors_url":"https://api.github.com/repos/jprichardson/electron-mocha/contributors","subscribers_url":"https://api.github.com/repos/jprichardson/electron-mocha/subscribers","subscription_url":"https://api.github.com/repos/jprichardson/electron-mocha/subscription","commits_url":"https://api.github.com/repos/jprichardson/electron-mocha/commits{/sha}","git_commits_url":"https://api.github.com/repos/jprichardson/electron-mocha/git/commits{/sha}","comments_url":"https://api.github.com/repos/jprichardson/electron-mocha/comments{/number}","issue_comment_url":"https://api.github.com/repos/jprichardson/electron-mocha/issues/comments{/number}","contents_url":"https://api.github.com/repos/jprichardson/electron-mocha/contents/{+path}","compare_url":"https://api.github.com/repos/jprichardson/electron-mocha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jprichardson/electron-mocha/merges","archive_url":"https://api.github.com/repos/jprichardson/electron-mocha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jprichardson/electron-mocha/downloads","issues_url":"https://api.github.com/repos/jprichardson/electron-mocha/issues{/number}","pulls_url":"https://api.github.com/repos/jprichardson/electron-mocha/pulls{/number}","milestones_url":"https://api.github.com/repos/jprichardson/electron-mocha/milestones{/number}","notifications_url":"https://api.github.com/repos/jprichardson/electron-mocha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jprichardson/electron-mocha/labels{/name}","releases_url":"https://api.github.com/repos/jprichardson/electron-mocha/releases{/id}","deployments_url":"https://api.github.com/repos/jprichardson/electron-mocha/deployments","created_at":"2015-07-10T22:03:07Z","updated_at":"2016-04-06T05:33:04Z","pushed_at":"2016-04-10T16:12:09Z","git_url":"git://github.com/jprichardson/electron-mocha.git","ssh_url":"git@github.com:jprichardson/electron-mocha.git","clone_url":"https://github.com/jprichardson/electron-mocha.git","svn_url":"https://github.com/jprichardson/electron-mocha","homepage":null,"size":423,"stargazers_count":109,"watchers_count":109,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":9,"forks":23,"open_issues":9,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52"},"html":{"href":"https://github.com/jprichardson/electron-mocha/pull/52"},"issue":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/issues/52"},"comments":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/jprichardson/electron-mocha/statuses/a52dd1120932f4e39d8078478f0636c4a820567c"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":12,"deletions":2,"changed_files":3}}