@@ -236,57 +236,6 @@ describe('reactivity to column option changes', () => {
236236 { dataField : 'name' , caption : 'Name' } ,
237237 ] ;
238238
239- it ( 'should re-render cards when column caption changes' , ( ) => {
240- const cardTemplate = jest . fn ( ) ;
241-
242- const container = document . createElement ( 'div' ) ;
243- const cardView = new CardView ( container , {
244- keyExpr : 'id' ,
245- dataSource,
246- columns,
247- cardTemplate,
248- } as CardViewOptions ) ;
249-
250- cardTemplate . mockClear ( ) ;
251- cardView . columnOption ( 'name' , 'caption' , 'Vehicle' ) ;
252-
253- expect ( cardTemplate ) . toBeCalledTimes ( dataSource . length ) ;
254- } ) ;
255-
256- it ( 'should re-render cards when column format changes' , ( ) => {
257- const cardTemplate = jest . fn ( ) ;
258-
259- const container = document . createElement ( 'div' ) ;
260- const cardView = new CardView ( container , {
261- keyExpr : 'id' ,
262- dataSource,
263- columns,
264- cardTemplate,
265- } as CardViewOptions ) ;
266-
267- cardTemplate . mockClear ( ) ;
268- cardView . columnOption ( 'id' , 'format' , 'currency' ) ;
269-
270- expect ( cardTemplate ) . toBeCalledTimes ( dataSource . length ) ;
271- } ) ;
272-
273- it ( 'should re-render cards when column alignment changes' , ( ) => {
274- const cardTemplate = jest . fn ( ) ;
275-
276- const container = document . createElement ( 'div' ) ;
277- const cardView = new CardView ( container , {
278- keyExpr : 'id' ,
279- dataSource,
280- columns,
281- cardTemplate,
282- } as CardViewOptions ) ;
283-
284- cardTemplate . mockClear ( ) ;
285- cardView . columnOption ( 'name' , 'alignment' , 'right' ) ;
286-
287- expect ( cardTemplate ) . toBeCalledTimes ( dataSource . length ) ;
288- } ) ;
289-
290239 it ( 'should not cause extra re-render when sort/filter options change' , ( ) => {
291240 const cardTemplate = jest . fn ( ) ;
292241
0 commit comments