mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
test: unhandled promise rejections
This commit is contained in:
parent
382853cb33
commit
2fe756be9e
@ -86,6 +86,10 @@ testList
|
||||
throw new Error('Window not found for iframe');
|
||||
}
|
||||
|
||||
contentWindow.addEventListener('unhandledrejection', (event) => {
|
||||
throw new Error(`unhandledrejection: ${event.reason}`);
|
||||
});
|
||||
|
||||
const canvas: HTMLCanvasElement = await contentWindow
|
||||
// @ts-ignore
|
||||
.html2canvas(contentWindow.forceElement || contentWindow.document.documentElement, {
|
||||
|
Loading…
Reference in New Issue
Block a user