Browse Source

Internal: Added missing beforeEach to plugins tests.

Oskar Wróbel 8 years ago
parent
commit
2b9674f15a
1 changed files with 11 additions and 0 deletions
  1. 11 0
      packages/ckeditor5-build-balloon/tests/ckeditor.js

+ 11 - 0
packages/ckeditor5-build-balloon/tests/ckeditor.js

@@ -73,6 +73,17 @@ describe( 'BalloonEditor build', () => {
 	} );
 
 	describe( 'plugins', () => {
+		beforeEach( () => {
+			return BalloonEditor.create( editorElement )
+				.then( newEditor => {
+					editor = newEditor;
+				} );
+		} );
+
+		afterEach( () => {
+			return editor.destroy();
+		} );
+
 		it( 'paragraph works', () => {
 			const data = '<p>Some text inside a paragraph.</p>';