Skip to content

Commit

Permalink
Remove underscore usage completely
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Sep 27, 2022
1 parent f6d12ec commit e36a112
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ const path = require( 'path' );
const serverConfigs = require( './serverConfigs' );
const { iosServer, iosLocal, android } = require( './caps' );
const AppiumLocal = require( './appium-local' );
// eslint-disable-next-line import/no-extraneous-dependencies
const _ = require( 'underscore' );

// Platform setup.
const defaultPlatform = 'android';
Expand Down Expand Up @@ -95,7 +93,7 @@ const setupDriver = async () => {

let desiredCaps;
if ( isAndroid() ) {
desiredCaps = _.clone( android );
desiredCaps = { ...android };
if ( isLocalEnvironment() ) {
desiredCaps.app = path.resolve( localAndroidAppPath );
try {
Expand All @@ -117,10 +115,10 @@ const setupDriver = async () => {
desiredCaps.app = `sauce-storage:Gutenberg-${ safeBranchName }.apk`; // App should be preloaded to sauce storage, this can also be a URL.
}
} else {
desiredCaps = _.clone( iosServer );
desiredCaps = { ...iosServer };
desiredCaps.app = `sauce-storage:Gutenberg-${ safeBranchName }.app.zip`; // App should be preloaded to sauce storage, this can also be a URL.
if ( isLocalEnvironment() ) {
desiredCaps = _.clone( iosLocal );
desiredCaps = { ...iosLocal };

const iosPlatformVersions = getIOSPlatformVersions();
if ( iosPlatformVersions.length === 0 ) {
Expand Down

0 comments on commit e36a112

Please sign in to comment.