Skip to content

Commit

Permalink
chore: Bump @appium/support dependency (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored May 7, 2022
1 parent 25edc6e commit 78679e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
],
"dependencies": {
"@appium/base-driver": "^8.5.2",
"@appium/support": "^2.55.3",
"@appium/support": "^2.58.0",
"@babel/runtime": "^7.4.3",
"appium-adb": "^9.1.0",
"appium-android-driver": "^5.0.0",
Expand Down
16 changes: 3 additions & 13 deletions test/functional/desired.js
Original file line number Diff line number Diff line change
@@ -1,28 +1,18 @@
import path from 'path';
import _ from 'lodash';
import gpsdemoApp from 'gps-demo-app';
import { node } from '@appium/support';

const apidemosApp = require.resolve('android-apidemos');

function deepFreeze (object) {
const propNames = Object.getOwnPropertyNames(object);
for (const name of propNames) {
const value = object[name];
if (value && typeof value === 'object') {
deepFreeze(value);
}
}
return Object.freeze(object);
}

function amendCapabilities (baseCaps, ...newCaps) {
return deepFreeze({
return node.deepFreeze({
alwaysMatch: _.cloneDeep(Object.assign({}, baseCaps.alwaysMatch, ...newCaps)),
firstMatch: [{}],
});
}

const GENERIC_CAPS = deepFreeze({
const GENERIC_CAPS = node.deepFreeze({
alwaysMatch: {
'appium:androidInstallTimeout': process.env.CI ? 120000 : 90000,
'appium:deviceName': 'Android',
Expand Down

0 comments on commit 78679e6

Please sign in to comment.