Skip to content

Commit

Permalink
Merge a8c152f into 803444d
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykola Mokhnach committed Sep 24, 2018
2 parents 803444d + a8c152f commit 8453f4a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/android-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ helpers.createBaseADB = async function (opts = {}) {
remoteAdbHost,
clearDeviceLogsOnStart,
adbExecTimeout,
useKeystore,
keystorePath,
keystorePassword,
keyAlias,
keyPassword,
} = opts;
return await ADB.createADB({
javaVersion,
Expand All @@ -72,6 +77,11 @@ helpers.createBaseADB = async function (opts = {}) {
remoteAdbHost,
clearDeviceLogsOnStart,
adbExecTimeout,
useKeystore,
keystorePath,
keystorePassword,
keyAlias,
keyPassword,
});
};

Expand Down
10 changes: 10 additions & 0 deletions test/unit/android-helper-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ describe('Android Helpers', function () {
remoteAdbHost: 'remote_host',
clearDeviceLogsOnStart: true,
adbExecTimeout: 50,
useKeystore: true,
keystorePath: '/some/path',
keystorePassword: '123456',
keyAlias: 'keyAlias',
keyPassword: 'keyPassword',
});
ADB.createADB.calledWithExactly({
javaVersion: "1.7",
Expand All @@ -279,6 +284,11 @@ describe('Android Helpers', function () {
remoteAdbHost: "remote_host",
clearDeviceLogsOnStart: true,
adbExecTimeout: 50,
useKeystore: true,
keystorePath: '/some/path',
keystorePassword: '123456',
keyAlias: 'keyAlias',
keyPassword: 'keyPassword',
}).should.be.true;
curDeviceId.should.equal("111222");
emulatorPort.should.equal("111");
Expand Down

0 comments on commit 8453f4a

Please sign in to comment.