-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
DataProcessor#useFillerType()
. Added `GFMDataProcessor#useFil…
…lerType()`.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/ckeditor5-markdown-gfm/tests/gfmdataprocessor/gfmdataprocessor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
|
||
import GFMDataProcessor from '../../src/gfmdataprocessor'; | ||
import ViewDocument from '@ckeditor/ckeditor5-engine/src/view/document'; | ||
import { StylesProcessor } from '@ckeditor/ckeditor5-engine/src/view/stylesmap'; | ||
|
||
describe( 'GFMDataProcessor', () => { | ||
let dataProcessor, viewDocument; | ||
|
||
beforeEach( () => { | ||
viewDocument = new ViewDocument( new StylesProcessor() ); | ||
dataProcessor = new GFMDataProcessor( viewDocument ); | ||
} ); | ||
|
||
describe( 'useFillerType()', () => { | ||
it( 'should have this method to be compatible with `DataProcessor` interface', () => { | ||
expect( () => { | ||
dataProcessor.useFillerType( 'default' ); | ||
} ).not.to.throw(); | ||
} ); | ||
} ); | ||
} ); |