Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Fixed console warnings by added the missing Paragraph plugin…
Browse files Browse the repository at this point in the history
  • Loading branch information
mlewand authored Sep 23, 2019
2 parents 051743e + 75300ad commit 0443a9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests/data/normalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
*/

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';

const browsers = [ 'chrome', 'firefox', 'safari', 'edge' ];

const editorConfig = {
plugins: [ Clipboard, PasteFromOffice ]
plugins: [ Clipboard, PasteFromOffice, Paragraph ]
};

describe( 'PasteFromOffice - normalization', () => {
Expand Down
5 changes: 3 additions & 2 deletions tests/pastefromoffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -18,7 +19,7 @@ describe( 'PasteFromOffice', () => {

beforeEach( () => {
return VirtualTestEditor.create( {
plugins: [ PasteFromOffice ]
plugins: [ PasteFromOffice, Paragraph ]
} )
.then( _editor => {
editor = _editor;
Expand All @@ -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', () => {
Expand Down

0 comments on commit 0443a9f

Please sign in to comment.