Skip to content

Commit 592dfad

Browse files
committed
test: fix mock driver
1 parent 9544cb8 commit 592dfad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/fixtures/driver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ import { W3C_ELEMENT_KEY } from '@appium/base-driver';
77
export 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

1313
export 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;

0 commit comments

Comments
 (0)