chore: fix android tests after #12220 (#12535)

This commit is contained in:
Max Schmitt 2022-03-05 00:18:03 +01:00 committed by GitHub
parent 6c4c62b674
commit 5fd43edcbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ export class Android extends ChannelOwner<channels.AndroidChannel> implements ap
this._channel.setDefaultTimeoutNoReply({ timeout });
}
async devices(options: { port?: number }): Promise<AndroidDevice[]> {
async devices(options: { port?: number } = {}): Promise<AndroidDevice[]> {
const { devices } = await this._channel.devices(options);
return devices.map(d => AndroidDevice.from(d));
}