Sfoglia il codice sorgente

Tests: Added test case for "Plugin.destroy()".

Kamil Piechaczek 8 anni fa
parent
commit
754376c88e
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8 0
      packages/ckeditor5-core/tests/plugin.js

+ 8 - 0
packages/ckeditor5-core/tests/plugin.js

@@ -18,4 +18,12 @@ describe( 'constructor()', () => {
 
 		expect( plugin ).to.have.property( 'editor' ).to.equal( editor );
 	} );
+
+	describe( 'destroy()', () => {
+		it( 'should be defined', () => {
+			const plugin = new Plugin( editor );
+
+			expect( plugin.destroy ).to.be.a( 'function' );
+		} );
+	} );
 } );