8
0
Просмотр исходного кода

Change refresh() method common behavior test assertion.

Maciej Gołaszewski 6 лет назад
Родитель
Сommit
c49fae6bd2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/ckeditor5-indent/tests/indentblockcommand.js

+ 2 - 2
packages/ckeditor5-indent/tests/indentblockcommand.js

@@ -58,10 +58,10 @@ describe( 'IndentBlockCommand', () => {
 		} );
 		} );
 
 
 		describe( 'refresh()', () => {
 		describe( 'refresh()', () => {
-			it( 'should not call indentBehavior.checkEnabled() for a selected block that cannot have indentBlock attribute', () => {
+			it( 'should be disabled if a top-most block disallows indentBlock attribute', () => {
 				setData( model, '[<parentBlock><paragraph>foo</paragraph></parentBlock>]' );
 				setData( model, '[<parentBlock><paragraph>foo</paragraph></parentBlock>]' );
 				command.refresh();
 				command.refresh();
-				sinon.assert.notCalled( indentBehavior.checkEnabled );
+				expect( command.isEnabled ).to.be.false;
 			} );
 			} );
 		} );
 		} );