Fix mathui tests

This commit is contained in:
Sauli Anto
2019-10-11 19:22:03 +03:00
parent 786fc0f3ce
commit b52da3bc6e
3 changed files with 36 additions and 108 deletions

View File

@@ -17,7 +17,16 @@ describe( 'AutoMath - integration', () => {
return ClassicTestEditor
.create( editorElement, {
plugins: [ Mathematics, AutoMath, Typing, Paragraph ]
plugins: [ Mathematics, AutoMath, Typing, Paragraph ],
math: {
engine: ( equation, element, display ) => {
if ( display ) {
element.innerHTML = '\\[' + equation + '\\]';
} else {
element.innerHTML = '\\(' + equation + '\\)';
}
}
}
} )
.then( newEditor => {
editor = newEditor;