Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Add route to get current package (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
imurchie authored Jun 15, 2017
1 parent c25db6a commit 190a896
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/mjsonwp/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ const METHOD_MAP = {
'/wd/hub/session/:sessionId/appium/device/current_activity': {
GET: {command: 'getCurrentActivity'}
},
'/wd/hub/session/:sessionId/appium/device/current_package': {
GET: {command: 'getCurrentPackage'}
},
'/wd/hub/session/:sessionId/appium/device/install_app': {
POST: {command: 'installApp', payloadParams: {required: ['appPath']}}
},
Expand Down
2 changes: 1 addition & 1 deletion test/mjsonwp/routes-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('MJSONWP', () => {
}
var hash = shasum.digest('hex').substring(0, 8);
// Modify the hash whenever the protocol has intentionally been modified.
hash.should.equal('5165c012');
hash.should.equal('354f9c79');
});
});

Expand Down

0 comments on commit 190a896

Please sign in to comment.