Skip to content

Commit ca26223

Browse files
chore: update tests to execute on xcode9 as well
1 parent 90254b2 commit ca26223

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/device-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class DeviceManager implements IDeviceManager {
133133
}
134134
}
135135

136-
public static async getDevices(query: IDevice) {
136+
public static async getDevices(query: IDevice): Promise<IDevice[]> {
137137
return await DeviceController.getDevices(query);
138138
}
139139

@@ -160,11 +160,11 @@ export class DeviceManager implements IDeviceManager {
160160
}
161161
}
162162

163-
public static async getInstalledApps(device: IDevice) {
163+
public static async getInstalledApps(device: IDevice): Promise<string[]> {
164164
return await DeviceController.getInstalledApplication(device);
165165
}
166166

167-
public static getDefaultDevice(args: INsCapabilities, deviceName?: string, token?: string, type?: DeviceType, platformVersion?: number) {
167+
public static getDefaultDevice(args: INsCapabilities, deviceName?: string, token?: string, type?: DeviceType, platformVersion?: number): IDevice {
168168
let device: IDevice = {
169169
name: deviceName || args.appiumCaps.deviceName,
170170
type: type,

lib/parser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export declare const projectDir: string, projectBinary: string, pluginRoot: string, pluginBinary: string, port: number, verbose: boolean, appiumCapsLocation: string, testFolder: string, runType: string, isSauceLab: boolean, appPath: string, storage: string, testReports: string, devMode: boolean, ignoreDeviceController: boolean, wdaLocalPort: number, path: string, relaxedSecurity: boolean, cleanApp: boolean, attachToDebug: boolean, sessionId: string, startSession: boolean, capabilitiesName: string, imagesPath: string, startDeviceOptions: string, deviceTypeOrPlatform: string, device: import("mobile-devices-controller/lib/device").IDevice;
1+
export declare const projectDir: string, projectBinary: string, pluginRoot: string, pluginBinary: string, port: number, verbose: boolean, appiumCapsLocation: string, testFolder: string, runType: string, isSauceLab: boolean, appPath: string, storage: string, testReports: string, devMode: boolean, ignoreDeviceController: boolean, wdaLocalPort: number, path: string, relaxedSecurity: boolean, cleanApp: boolean, attachToDebug: boolean, sessionId: string, startSession: boolean, capabilitiesName: string, imagesPath: string, startDeviceOptions: string, deviceTypeOrPlatform: string, device: any;

test/device-manager.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe("Start device by apiLevel", async () => {
218218
const nsCaps = new NsCapabilities({
219219
appPath: iosApp,
220220
appiumCaps: {
221-
platformVersion: /12./,
221+
platformVersion: /12.||11./,
222222
platformName: Platform.IOS,
223223
fullReset: true
224224
}

0 commit comments

Comments
 (0)