{"action":"created","comment":{"url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/comments/35054812","id":35054812,"diff_hunk":"@@ -0,0 +1,39 @@\n+// transpile :mocha\n+\n+import chai from 'chai';\n+import chaiAsPromised from 'chai-as-promised';\n+import 'mochawait';\n+import path from 'path';\n+import AndroidBootstrap from '../../index.js';\n+import ADB from 'appium-adb';\n+\n+\n+chai.should();\n+chai.use(chaiAsPromised);\n+\n+describe('Android Bootstrap', function () {\n+  let adb, androidBootstrap;\n+  let rootDir = path.resolve(__dirname,\n+                             process.env.NO_PRECOMPILE ? '../..' : '../../..');\n+  const apiDemos = path.resolve(rootDir, 'test', 'fixtures', 'ApiDemos-debug.apk');\n+  const systemPort = 4724;\n+  before(async () => {\n+    adb = await ADB.createADB();\n+    const packageName = 'com.example.android.apis',\n+          activityName = '.ApiDemos';\n+    await adb.install(apiDemos);\n+    await adb.startApp({pkg: packageName,\n+                        activity: activityName});\n+    androidBootstrap = new AndroidBootstrap(systemPort);\n+    await androidBootstrap.start('com.example.android.apis', false);\n+  });\n+  after(async ()=> {\n+    await androidBootstrap.shutdown();\n+  });\n+  it(\"sendAction should work\", async () => {\n+    (await androidBootstrap.sendAction('wake')).should.have.property('status').equal(0);\n+  });\n+  it(\"sendCommand should work\", async () => {\n+    await androidBootstrap.sendCommand('action',{action: 'getDataDir'});","path":"test/functional/bootstrap-e2e-specs.js","position":37,"original_position":37,"commit_id":"1c0695080dd5d609af7465e23800554100bf0439","original_commit_id":"1c0695080dd5d609af7465e23800554100bf0439","user":{"login":"jlipps","id":605053,"avatar_url":"https://avatars.githubusercontent.com/u/605053?v=3","gravatar_id":"","url":"https://api.github.com/users/jlipps","html_url":"https://github.com/jlipps","followers_url":"https://api.github.com/users/jlipps/followers","following_url":"https://api.github.com/users/jlipps/following{/other_user}","gists_url":"https://api.github.com/users/jlipps/gists{/gist_id}","starred_url":"https://api.github.com/users/jlipps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlipps/subscriptions","organizations_url":"https://api.github.com/users/jlipps/orgs","repos_url":"https://api.github.com/users/jlipps/repos","events_url":"https://api.github.com/users/jlipps/events{/privacy}","received_events_url":"https://api.github.com/users/jlipps/received_events","type":"User","site_admin":false},"body":"space after comma","created_at":"2015-07-20T23:07:54Z","updated_at":"2015-07-20T23:07:54Z","html_url":"https://github.com/appium/appium-android-bootstrap/pull/3#discussion_r35054812","pull_request_url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/comments/35054812"},"html":{"href":"https://github.com/appium/appium-android-bootstrap/pull/3#discussion_r35054812"},"pull_request":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3","id":40405446,"html_url":"https://github.com/appium/appium-android-bootstrap/pull/3","diff_url":"https://github.com/appium/appium-android-bootstrap/pull/3.diff","patch_url":"https://github.com/appium/appium-android-bootstrap/pull/3.patch","issue_url":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/3","number":3,"state":"open","locked":false,"title":"Adding android bootstrap functionality","user":{"login":"moizjv","id":1308607,"avatar_url":"https://avatars.githubusercontent.com/u/1308607?v=3","gravatar_id":"","url":"https://api.github.com/users/moizjv","html_url":"https://github.com/moizjv","followers_url":"https://api.github.com/users/moizjv/followers","following_url":"https://api.github.com/users/moizjv/following{/other_user}","gists_url":"https://api.github.com/users/moizjv/gists{/gist_id}","starred_url":"https://api.github.com/users/moizjv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizjv/subscriptions","organizations_url":"https://api.github.com/users/moizjv/orgs","repos_url":"https://api.github.com/users/moizjv/repos","events_url":"https://api.github.com/users/moizjv/events{/privacy}","received_events_url":"https://api.github.com/users/moizjv/received_events","type":"User","site_admin":false},"body":"- first cut for appium-android-bootstrap\r\n- will add more unit tests\r\n- @jlipps @sebv @imurchie please review :) .","created_at":"2015-07-20T22:41:18Z","updated_at":"2015-07-20T23:07:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2395e947dc4dbd91a41d79e301c69cc4ed9f94c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3/commits","review_comments_url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3/comments","review_comment_url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/3/comments","statuses_url":"https://api.github.com/repos/appium/appium-android-bootstrap/statuses/1c0695080dd5d609af7465e23800554100bf0439","head":{"label":"moizjv:master","ref":"master","sha":"1c0695080dd5d609af7465e23800554100bf0439","user":{"login":"moizjv","id":1308607,"avatar_url":"https://avatars.githubusercontent.com/u/1308607?v=3","gravatar_id":"","url":"https://api.github.com/users/moizjv","html_url":"https://github.com/moizjv","followers_url":"https://api.github.com/users/moizjv/followers","following_url":"https://api.github.com/users/moizjv/following{/other_user}","gists_url":"https://api.github.com/users/moizjv/gists{/gist_id}","starred_url":"https://api.github.com/users/moizjv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizjv/subscriptions","organizations_url":"https://api.github.com/users/moizjv/orgs","repos_url":"https://api.github.com/users/moizjv/repos","events_url":"https://api.github.com/users/moizjv/events{/privacy}","received_events_url":"https://api.github.com/users/moizjv/received_events","type":"User","site_admin":false},"repo":{"id":39037685,"name":"appium-android-bootstrap","full_name":"moizjv/appium-android-bootstrap","owner":{"login":"moizjv","id":1308607,"avatar_url":"https://avatars.githubusercontent.com/u/1308607?v=3","gravatar_id":"","url":"https://api.github.com/users/moizjv","html_url":"https://github.com/moizjv","followers_url":"https://api.github.com/users/moizjv/followers","following_url":"https://api.github.com/users/moizjv/following{/other_user}","gists_url":"https://api.github.com/users/moizjv/gists{/gist_id}","starred_url":"https://api.github.com/users/moizjv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moizjv/subscriptions","organizations_url":"https://api.github.com/users/moizjv/orgs","repos_url":"https://api.github.com/users/moizjv/repos","events_url":"https://api.github.com/users/moizjv/events{/privacy}","received_events_url":"https://api.github.com/users/moizjv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/moizjv/appium-android-bootstrap","description":"Npm module for androidBootstrap, the java project which appium uses to interact with UiAutomator","fork":true,"url":"https://api.github.com/repos/moizjv/appium-android-bootstrap","forks_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/forks","keys_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/teams","hooks_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/events","assignees_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/tags","blobs_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/languages","stargazers_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/subscription","commits_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/merges","archive_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/downloads","issues_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/moizjv/appium-android-bootstrap/releases{/id}","created_at":"2015-07-13T21:12:41Z","updated_at":"2015-07-14T04:41:05Z","pushed_at":"2015-07-20T22:40:06Z","git_url":"git://github.com/moizjv/appium-android-bootstrap.git","ssh_url":"git@github.com:moizjv/appium-android-bootstrap.git","clone_url":"https://github.com/moizjv/appium-android-bootstrap.git","svn_url":"https://github.com/moizjv/appium-android-bootstrap","homepage":null,"size":450,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"appium:master","ref":"master","sha":"6fdce0f031bef1cfd31f3be6ad60d3a6839273ca","user":{"login":"appium","id":3221291,"avatar_url":"https://avatars.githubusercontent.com/u/3221291?v=3","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"repo":{"id":24956924,"name":"appium-android-bootstrap","full_name":"appium/appium-android-bootstrap","owner":{"login":"appium","id":3221291,"avatar_url":"https://avatars.githubusercontent.com/u/3221291?v=3","gravatar_id":"","url":"https://api.github.com/users/appium","html_url":"https://github.com/appium","followers_url":"https://api.github.com/users/appium/followers","following_url":"https://api.github.com/users/appium/following{/other_user}","gists_url":"https://api.github.com/users/appium/gists{/gist_id}","starred_url":"https://api.github.com/users/appium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appium/subscriptions","organizations_url":"https://api.github.com/users/appium/orgs","repos_url":"https://api.github.com/users/appium/repos","events_url":"https://api.github.com/users/appium/events{/privacy}","received_events_url":"https://api.github.com/users/appium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appium/appium-android-bootstrap","description":"Npm module for androidBootstrap, the java project which appium uses to interact with UiAutomator","fork":false,"url":"https://api.github.com/repos/appium/appium-android-bootstrap","forks_url":"https://api.github.com/repos/appium/appium-android-bootstrap/forks","keys_url":"https://api.github.com/repos/appium/appium-android-bootstrap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appium/appium-android-bootstrap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appium/appium-android-bootstrap/teams","hooks_url":"https://api.github.com/repos/appium/appium-android-bootstrap/hooks","issue_events_url":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/events{/number}","events_url":"https://api.github.com/repos/appium/appium-android-bootstrap/events","assignees_url":"https://api.github.com/repos/appium/appium-android-bootstrap/assignees{/user}","branches_url":"https://api.github.com/repos/appium/appium-android-bootstrap/branches{/branch}","tags_url":"https://api.github.com/repos/appium/appium-android-bootstrap/tags","blobs_url":"https://api.github.com/repos/appium/appium-android-bootstrap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appium/appium-android-bootstrap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appium/appium-android-bootstrap/git/refs{/sha}","trees_url":"https://api.github.com/repos/appium/appium-android-bootstrap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appium/appium-android-bootstrap/statuses/{sha}","languages_url":"https://api.github.com/repos/appium/appium-android-bootstrap/languages","stargazers_url":"https://api.github.com/repos/appium/appium-android-bootstrap/stargazers","contributors_url":"https://api.github.com/repos/appium/appium-android-bootstrap/contributors","subscribers_url":"https://api.github.com/repos/appium/appium-android-bootstrap/subscribers","subscription_url":"https://api.github.com/repos/appium/appium-android-bootstrap/subscription","commits_url":"https://api.github.com/repos/appium/appium-android-bootstrap/commits{/sha}","git_commits_url":"https://api.github.com/repos/appium/appium-android-bootstrap/git/commits{/sha}","comments_url":"https://api.github.com/repos/appium/appium-android-bootstrap/comments{/number}","issue_comment_url":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/comments{/number}","contents_url":"https://api.github.com/repos/appium/appium-android-bootstrap/contents/{+path}","compare_url":"https://api.github.com/repos/appium/appium-android-bootstrap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appium/appium-android-bootstrap/merges","archive_url":"https://api.github.com/repos/appium/appium-android-bootstrap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appium/appium-android-bootstrap/downloads","issues_url":"https://api.github.com/repos/appium/appium-android-bootstrap/issues{/number}","pulls_url":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls{/number}","milestones_url":"https://api.github.com/repos/appium/appium-android-bootstrap/milestones{/number}","notifications_url":"https://api.github.com/repos/appium/appium-android-bootstrap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appium/appium-android-bootstrap/labels{/name}","releases_url":"https://api.github.com/repos/appium/appium-android-bootstrap/releases{/id}","created_at":"2014-10-08T19:28:29Z","updated_at":"2015-07-14T22:54:29Z","pushed_at":"2015-07-20T22:41:18Z","git_url":"git://github.com/appium/appium-android-bootstrap.git","ssh_url":"git@github.com:appium/appium-android-bootstrap.git","clone_url":"https://github.com/appium/appium-android-bootstrap.git","svn_url":"https://github.com/appium/appium-android-bootstrap","homepage":null,"size":474,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3"},"html":{"href":"https://github.com/appium/appium-android-bootstrap/pull/3"},"issue":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/3"},"comments":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/appium/appium-android-bootstrap/statuses/1c0695080dd5d609af7465e23800554100bf0439"}}}}