|
|
@@ -67,19 +67,19 @@ describe( 'MentionUI', () => {
|
|
|
describe( 'init()', () => {
|
|
|
it( 'should throw if marker was not provided for feed', () => {
|
|
|
return createClassicTestEditor( { feeds: [ { feed: [ 'a' ] } ] } ).catch( error => {
|
|
|
- assertCKEditorError( error, /mentionconfig-incorrect-marker/, editor );
|
|
|
+ assertCKEditorError( error, /mentionconfig-incorrect-marker/, null );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
it( 'should throw if marker is empty string', () => {
|
|
|
return createClassicTestEditor( { feeds: [ { marker: '', feed: [ 'a' ] } ] } ).catch( error => {
|
|
|
- assertCKEditorError( error, /mentionconfig-incorrect-marker/, editor );
|
|
|
+ assertCKEditorError( error, /mentionconfig-incorrect-marker/, null );
|
|
|
} );
|
|
|
} );
|
|
|
|
|
|
it( 'should throw if marker is longer then 1 character', () => {
|
|
|
return createClassicTestEditor( { feeds: [ { marker: '$$', feed: [ 'a' ] } ] } ).catch( error => {
|
|
|
- assertCKEditorError( error, /mentionconfig-incorrect-marker/, editor );
|
|
|
+ assertCKEditorError( error, /mentionconfig-incorrect-marker/, null );
|
|
|
} );
|
|
|
} );
|
|
|
} );
|