File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ import { W3C_ELEMENT_KEY } from '@appium/base-driver';
77export interface MockDriver {
88 sendPowerShellCommand : ReturnType < typeof vi . fn > ;
99 log : { debug : ReturnType < typeof vi . fn > ; info ?: ReturnType < typeof vi . fn > } ;
10- assertFeatureEnabled ? : ReturnType < typeof vi . fn > ;
10+ assertFeatureEnabled : ReturnType < typeof vi . fn > ;
1111}
1212
1313export function createMockDriver ( overrides ?: Partial < MockDriver > ) : MockDriver {
1414 const sendPowerShellCommand = vi . fn ( ) . mockResolvedValue ( '' ) ;
1515 const log = { debug : vi . fn ( ) , info : vi . fn ( ) } ;
16+ const assertFeatureEnabled = vi . fn ( ) ;
1617 const driver : MockDriver = {
1718 sendPowerShellCommand,
1819 log,
20+ assertFeatureEnabled,
1921 ...overrides ,
2022 } ;
2123 return driver ;
You can’t perform that action at this time.
0 commit comments