From d65961bc8c1d073d9f7749cb775ac6eba6ae2359 Mon Sep 17 00:00:00 2001 From: Isaac Murchie Date: Wed, 14 Jun 2017 08:02:34 -0400 Subject: [PATCH] Add route to get current package --- lib/mjsonwp/routes.js | 3 +++ test/mjsonwp/routes-specs.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/mjsonwp/routes.js b/lib/mjsonwp/routes.js index 65038b85d..7fb063467 100644 --- a/lib/mjsonwp/routes.js +++ b/lib/mjsonwp/routes.js @@ -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']}} }, diff --git a/test/mjsonwp/routes-specs.js b/test/mjsonwp/routes-specs.js index 2181cd1ff..03fc86693 100644 --- a/test/mjsonwp/routes-specs.js +++ b/test/mjsonwp/routes-specs.js @@ -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'); }); });