Przeglądaj źródła

Change refresh() method common behavior test assertion.

Maciej Gołaszewski 6 lat temu
rodzic
commit
c49fae6bd2

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

@@ -58,10 +58,10 @@ describe( 'IndentBlockCommand', () => {
 		} );
 
 		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>]' );
 				command.refresh();
-				sinon.assert.notCalled( indentBehavior.checkEnabled );
+				expect( command.isEnabled ).to.be.false;
 			} );
 		} );