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

Commit 190a896

Browse files
authored
Add route to get current package (#123)
1 parent c25db6a commit 190a896

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/mjsonwp/routes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,9 @@ const METHOD_MAP = {
345345
'/wd/hub/session/:sessionId/appium/device/current_activity': {
346346
GET: {command: 'getCurrentActivity'}
347347
},
348+
'/wd/hub/session/:sessionId/appium/device/current_package': {
349+
GET: {command: 'getCurrentPackage'}
350+
},
348351
'/wd/hub/session/:sessionId/appium/device/install_app': {
349352
POST: {command: 'installApp', payloadParams: {required: ['appPath']}}
350353
},

test/mjsonwp/routes-specs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('MJSONWP', () => {
3838
}
3939
var hash = shasum.digest('hex').substring(0, 8);
4040
// Modify the hash whenever the protocol has intentionally been modified.
41-
hash.should.equal('5165c012');
41+
hash.should.equal('354f9c79');
4242
});
4343
});
4444

0 commit comments

Comments
 (0)