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

Add route to get current package #123

Merged
merged 1 commit into from
Jun 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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