Skip to content

Build your personal knowledge base with Trilium Notes

test(ckeditor5-math): fix errors due to missing stopPropagation

Elian Doran6134d010acb8
diff --git a/packages/ckeditor5-math/tests/automath.ts b/packages/ckeditor5-math/tests/automath.ts
index ff9675c993..a6a3b8ab36 100644
--- a/packages/ckeditor5-math/tests/automath.ts
+++ b/packages/ckeditor5-math/tests/automath.ts
@@ -166,9 +166,8 @@ describe( 'AutoMath - integration', () => {
function pasteHtml( editor: ClassicEditor, html: string ) {
editor.editing.view.document.fire( 'paste', {
dataTransfer: createDataTransfer( { 'text/html': html } ),
- preventDefault() {
- return undefined;
- }
+ preventDefault() {},
+ stopPropagation() {}
} );
}