Parcourir la source

Sixth batch of changes aligning schema use to the new API.

Piotrek Koszuliński il y a 8 ans
Parent
commit
121f3b8aff
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/ckeditor5-basic-styles/tests/attributecommand.js

+ 1 - 1
packages/ckeditor5-basic-styles/tests/attributecommand.js

@@ -38,7 +38,7 @@ describe( 'AttributeCommand', () => {
 					const attributeName = args[ 1 ];
 
 					// Allow 'bold' on p>$text.
-					if ( ctx.matchEnd( 'p $text' ) && attributeName == 'bold' ) {
+					if ( ctx.endsWith( 'p $text' ) && attributeName == 'bold' ) {
 						evt.stop();
 						evt.return = true;
 					}