@@ -5,17 +5,16 @@ import {render, screen} from '@testing-library/react';
55import { testCustomClassName } from '../../../../test-utils/shared/common' ;
66import { qaIdByDefault } from '../../../components/Anchor/Anchor' ;
77import { GridColumnSize } from '../../../grid' ;
8- import { BlockTypes , ClassNameProps , WithChildren } from '../../../models' ;
8+ import { ClassNameProps , WithChildren } from '../../../models' ;
99import BlockBase , { BlockBaseFullProps } from '../BlockBase' ;
1010
1111const qaId = 'block-base-component' ;
12- const blockType = BlockTypes [ 0 ] ;
1312
1413type ComponentProps = WithChildren < BlockBaseFullProps & ClassNameProps > ;
1514
1615describe ( 'BlockBase' , ( ) => {
1716 test ( 'render component by default' , async ( ) => {
18- render ( < BlockBase qa = { qaId } type = { blockType } /> ) ;
17+ render ( < BlockBase qa = { qaId } /> ) ;
1918 const component = screen . getByTestId ( qaId ) ;
2019
2120 expect ( component ) . toBeInTheDocument ( ) ;
@@ -26,12 +25,12 @@ describe('BlockBase', () => {
2625 test ( 'add className' , ( ) => {
2726 testCustomClassName < ComponentProps > ( {
2827 component : BlockBase ,
29- props : { qa : qaId , type : blockType } ,
28+ props : { qa : qaId } ,
3029 } ) ;
3130 } ) ;
3231
3332 test ( 'should reset paddings' , ( ) => {
34- render ( < BlockBase qa = { qaId } resetPaddings = { true } type = { blockType } /> ) ;
33+ render ( < BlockBase qa = { qaId } resetPaddings = { true } /> ) ;
3534 const component = screen . getByTestId ( qaId ) ;
3635
3736 expect ( component ) . toHaveClass ( 'pc-block-base_reset-paddings' ) ;
@@ -40,7 +39,7 @@ describe('BlockBase', () => {
4039 test . each ( new Array < GridColumnSize > ( ...Object . values ( GridColumnSize ) ) ) (
4140 'render with given "%s" size' ,
4241 ( size ) => {
43- render ( < BlockBase qa = { qaId } visible = { size } type = { blockType } /> ) ;
42+ render ( < BlockBase qa = { qaId } visible = { size } /> ) ;
4443 const component = screen . getByTestId ( qaId ) ;
4544
4645 expect ( component ) . toHaveClass ( `d-${ size } -block` ) ;
@@ -52,7 +51,7 @@ describe('BlockBase', () => {
5251 text : 'anchor' ,
5352 url : 'https://github.com/gravity-ui/' ,
5453 } ;
55- render ( < BlockBase anchor = { anchor } type = { blockType } /> ) ;
54+ render ( < BlockBase anchor = { anchor } /> ) ;
5655 const component = screen . getByTestId ( qaIdByDefault ) ;
5756
5857 expect ( component ) . toBeInTheDocument ( ) ;
0 commit comments