Skip to content

Commit 20750ef

Browse files
committed
test(daemon): type the route driver's dialog-read stub as the adapter declares it
1 parent 658191c commit 20750ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/daemon/__tests__/request-dispatch-disclosure.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ async function scrollUntilRefusedBeforeFirstGesture(): Promise<unknown> {
9797
async function androidScrollThenDialogReadRefused(): Promise<unknown> {
9898
const observation: AndroidObservationAdapter = {
9999
...clearAndroidObservationFixture,
100-
readBlockingDialog: async (device) => {
100+
readBlockingDialog: async () => {
101101
if (gestureRuntimeSpies.scrollDirection.mock.calls.length > 0) {
102102
throw new AppError('COMMAND_FAILED', 'adb device offline', { dispatched: 'no' });
103103
}
104-
return await clearAndroidObservationFixture.readBlockingDialog(device);
104+
return { status: 'clear' };
105105
},
106106
};
107107
const failure = await route(

0 commit comments

Comments
 (0)