1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Chore: Mobile: Improve note screen tests and fix CI warning (#11126)

This commit is contained in:
Henry Heino
2024-09-27 07:23:02 -07:00
committed by GitHub
parent 90640e590e
commit 5935c9c147
8 changed files with 143 additions and 29 deletions

View File

@ -93,7 +93,7 @@ const ExtendedWebView = (props: Props, ref: Ref<WebViewControl>) => {
}, [dom]);
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- HACK: Allow wrapper testing logic to access the DOM.
const additionalProps: any = { document: dom?.window?.document };
const additionalProps: any = { window: dom?.window };
return (
<View style={props.style} testID={props.testID} {...additionalProps}/>
);