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

Tests: Code refactoring in ColorInputView tests.

Aleksander Nowodzinski 6 лет назад
Родитель
Сommit
4f4cec7f59
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      packages/ckeditor5-table/tests/ui/colorinputview.js

+ 4 - 4
packages/ckeditor5-table/tests/ui/colorinputview.js

@@ -104,16 +104,16 @@ describe( 'ColorInputView', () => {
 				expect( noColorPreview.classList.contains( 'ck-hidden' ) ).to.be.false;
 			} );
 
-			it( 'should have the color grid', () => {
-				expect( view._dropdownView.panelView.children.last ).to.be.instanceOf( ColorGridView );
-			} );
-
 			it( 'should have the remove color button', () => {
 				expect( view._dropdownView.panelView.children.first ).to.be.instanceOf( ButtonView );
 			} );
 		} );
 
 		describe( 'color grid', () => {
+			it( 'should be an instance of ColorGridView', () => {
+				expect( colorGridView ).to.be.instanceOf( ColorGridView );
+			} );
+
 			it( 'should set #value upon #execute', () => {
 				expect( view.value ).to.equal( '' );