8
0
Эх сурвалжийг харах

Tests: Code refactoring in ColorInputView tests.

Aleksander Nowodzinski 6 жил өмнө
parent
commit
4f4cec7f59

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

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