Sfoglia il codice sorgente

Clean after tests.

Kamil Piechaczek 5 anni fa
parent
commit
534a3c463e

+ 6 - 0
packages/ckeditor5-font/tests/fontfamily/fontfamilyediting.js

@@ -72,6 +72,8 @@ describe( 'FontFamilyEditing', () => {
 		} );
 
 		describe( 'disableValueMatching=true', () => {
+			let editor, doc;
+
 			beforeEach( () => {
 				return VirtualTestEditor
 					.create( {
@@ -90,6 +92,10 @@ describe( 'FontFamilyEditing', () => {
 					} );
 			} );
 
+			afterEach( () => {
+				return editor.destroy();
+			} );
+
 			describe( 'editing pipeline conversion', () => {
 				it( 'should convert unknown fontFamily attribute values', () => {
 					setModelData( doc, '<paragraph>f<$text fontFamily="foo-bar">o</$text>o</paragraph>' );