File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -245,15 +245,15 @@ export interface GetConnectivityResult {
245
245
/**
246
246
* True if wifi is enabled
247
247
*/
248
- wifi : boolean ;
248
+ wifi ? : boolean ;
249
249
/**
250
250
* True if mobile data connection is enabled
251
251
*/
252
- data : boolean ;
252
+ data ? : boolean ;
253
253
/**
254
254
* True if Airplane Mode is enabled
255
255
*/
256
- airplaneMode : boolean ;
256
+ airplaneMode ? : boolean ;
257
257
}
258
258
259
259
export type ServiceType = 'wifi' | 'data' | 'airplaneMode' ;
Original file line number Diff line number Diff line change @@ -128,6 +128,9 @@ describe('Network', function () {
128
128
await driver . mobileGetConnectivity ( [ 'bad' , 'array' ] )
129
129
. should . eventually . rejectedWith ( errors . InvalidArgumentError ) ;
130
130
} ) ;
131
+ it ( 'should raise unsupported services with an empty array' , async function ( ) {
132
+ await driver . mobileGetConnectivity ( ) . should . eventually . eql ( { } ) ;
133
+ } ) ;
131
134
it ( 'should return all supported services' , async function ( ) {
132
135
adb . isWifiOn . returns ( true ) ;
133
136
adb . isDataOn . returns ( true ) ;
You can’t perform that action at this time.
0 commit comments