Procházet zdrojové kódy

Stubbed and tested console warnings.

Maciej Bukowski před 6 roky
rodič
revize
2ff1d1a9d1

+ 2 - 1
packages/ckeditor5-paste-from-office/tests/data/normalization.js

@@ -4,6 +4,7 @@
  */
 
 import Clipboard from '@ckeditor/ckeditor5-clipboard/src/clipboard';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import PasteFromOffice from '../../src/pastefromoffice';
 
 import { generateTests } from '../_utils/utils';
@@ -11,7 +12,7 @@ import { generateTests } from '../_utils/utils';
 const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];
 
 const editorConfig = {
-	plugins: [ Clipboard, PasteFromOffice ]
+	plugins: [ Clipboard, PasteFromOffice, Paragraph ]
 };
 
 describe( 'PasteFromOffice - normalization', () => {

+ 3 - 2
packages/ckeditor5-paste-from-office/tests/pastefromoffice.js

@@ -9,6 +9,7 @@ import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtest
 import HtmlDataProcessor from '@ckeditor/ckeditor5-engine/src/dataprocessor/htmldataprocessor';
 import { createDataTransfer } from './_utils/utils';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
+import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
 describe( 'PasteFromOffice', () => {
 	const htmlDataProcessor = new HtmlDataProcessor();
@@ -18,7 +19,7 @@ describe( 'PasteFromOffice', () => {
 
 	beforeEach( () => {
 		return VirtualTestEditor.create( {
-			plugins: [ PasteFromOffice ]
+			plugins: [ PasteFromOffice, Paragraph ]
 		} )
 			.then( _editor => {
 				editor = _editor;
@@ -28,7 +29,7 @@ describe( 'PasteFromOffice', () => {
 	} );
 
 	it( 'should be loaded', () => {
-		expect( pasteFromOffice ).to.be.instanceOf( PasteFromOffice );
+		expect( pasteFromOffice ).to.be.instanceOf( PasteFromOffice, Paragraph );
 	} );
 
 	it( 'has proper name', () => {