From 9f843e8a762785e59760a547f792b8f6cf7bf3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Zag=C3=B3rski?= Date: Thu, 10 Mar 2022 16:19:50 +0100 Subject: [PATCH] Removed unnecessary code from the test. --- tests/mermaidui.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tests/mermaidui.js b/tests/mermaidui.js index 53d424236..957d9945b 100644 --- a/tests/mermaidui.js +++ b/tests/mermaidui.js @@ -1,6 +1,5 @@ import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor'; -import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model'; -import { Paragraph } from '@ckeditor/ckeditor5-paragraph'; +import { setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model'; import Mermaid from '../src/mermaid'; import MermaidUI from '../src/mermaidui'; @@ -21,8 +20,7 @@ describe( 'MermaidUI', () => { editor = await ClassicEditor.create( domElement, { plugins: [ - Mermaid, - Paragraph + Mermaid ] } ); } ); @@ -76,9 +74,7 @@ describe( 'MermaidUI', () => { it( 'should not crash if the button is fired inside model.change()', () => { const button = editor.ui.componentFactory.create( 'mermaid' ); - setModelData( editor.model, - '[foo]' - ); + setModelData( editor.model, '[]' ); editor.model.change( () => { button.fire( 'execute' );