Skip to content

Commit ce68c66

Browse files
author
Feroz Khan
committed
Formatted code
1 parent 83242f7 commit ce68c66

4 files changed

Lines changed: 18 additions & 11 deletions

File tree

src/commands/element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export async function findElOrEls(
1818
const driver = await getProxyDriver.bind(this)(strategy);
1919
let elementBody;
2020
if (
21-
this.proxydriver instanceof AndroidUiautomator2Driver ||
22-
this.proxydriver instanceof XCUITestDriver
21+
this.proxydriver instanceof AndroidUiautomator2Driver ||
22+
this.proxydriver instanceof XCUITestDriver
2323
) {
2424
elementBody = {
2525
strategy,

src/driver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ export class AppiumFlutterDriver extends BaseDriver<FlutterDriverConstraints> {
222222
this.currentContext === this.NATIVE_CONTEXT_NAME &&
223223
isFlutterDriverCommand(command)
224224
) {
225-
this.log.debug(`executeCommand: command ${command} is flutter command using flutter driver`);
225+
this.log.debug(
226+
`executeCommand: command ${command} is flutter command using flutter driver`,
227+
);
226228
return await super.executeCommand(command, ...args);
227229
} else {
228230
this.log.info(

src/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function createSession(
3232
case PLATFORM.MAC:
3333
this.proxydriver = await startMacOsSession.bind(this)(...args);
3434
this.proxydriver.relaxedSecurityEnabled =
35-
this.relaxedSecurityEnabled;
35+
this.relaxedSecurityEnabled;
3636
this.proxydriver.denyInsecure = this.denyInsecure;
3737
this.proxydriver.allowInsecure = this.allowInsecure;
3838
break;

src/utils.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,28 @@ export async function getProxyDriver(
3333
strategy: string,
3434
): Promise<JWProxy | undefined> {
3535
if (strategy.startsWith('-flutter') || FLUTTER_LOCATORS.includes(strategy)) {
36-
this.log.debug(`getProxyDriver: using flutter driver, strategy: ${strategy}`);
36+
this.log.debug(
37+
`getProxyDriver: using flutter driver, strategy: ${strategy}`,
38+
);
3739
return this.proxy;
3840
} else if (this.proxydriver instanceof AndroidUiautomator2Driver) {
39-
this.log.debug('getProxyDriver: using AndroidUiautomator2Driver driver for Android');
41+
this.log.debug(
42+
'getProxyDriver: using AndroidUiautomator2Driver driver for Android',
43+
);
4044
// @ts-ignore Proxy instance is OK
4145
return this.proxydriver.uiautomator2.jwproxy;
42-
} else if (this.proxydriver instanceof XCUITestDriver) {
46+
} else if (this.proxydriver instanceof XCUITestDriver) {
4347
this.log.debug('getProxyDriver: using XCUITestDriver driver for iOS');
4448
// @ts-ignore Proxy instance is OK
4549
return this.proxydriver.wda.jwproxy;
46-
}
47-
else if (this.proxydriver instanceof Mac2Driver) {
50+
} else if (this.proxydriver instanceof Mac2Driver) {
4851
this.log.debug('getProxyDriver: using Mac2Driver driver for mac');
4952
// @ts-ignore Proxy instance is OK
5053
return this.proxydriver.wda.proxy;
51-
}else{
52-
throw new Error(`proxydriver is unknown type (${typeof this.proxydriver})`);
54+
} else {
55+
throw new Error(
56+
`proxydriver is unknown type (${typeof this.proxydriver})`,
57+
);
5358
}
5459
}
5560

0 commit comments

Comments
 (0)