File tree Expand file tree Collapse file tree 1 file changed +2
-20
lines changed
src/components/tables/c-table Expand file tree Collapse file tree 1 file changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,7 @@ describe('c-table component', () => {
579579 expect ( col . sortClass ) . toBe ( component . styles . sortDesc ) ;
580580 } ) ;
581581
582- it ( 'will sort desc when col reverseSort' , ( ) => {
582+ it ( 'will sort asc still when col reverseSort' , ( ) => {
583583 const col : any = {
584584 _class : 'code' ,
585585 _status : 'warning' ,
@@ -594,25 +594,7 @@ describe('c-table component', () => {
594594
595595 component . setColSortClass ( col ) ;
596596
597- expect ( col . sortClass ) . toBe ( component . styles . sortDesc ) ;
598- } ) ;
599-
600- it ( 'will sort desc when table reverseSort' , ( ) => {
601- const col : any = {
602- _class : 'code' ,
603- _status : 'warning' ,
604- colClass : 't150' ,
605- colHeadName : 'name' ,
606- colHeadValue : 'Name' ,
607- sort : true ,
608- } ;
609-
610- component . reverseSort = true ;
611- component . defaultSortCol = `${ col . colHeadName } ` ;
612-
613- component . setColSortClass ( col ) ;
614-
615- expect ( col . sortClass ) . toBe ( component . styles . sortDesc ) ;
597+ expect ( col . sortClass ) . toBe ( component . styles . sortAsc ) ;
616598 } ) ;
617599 } ) ;
618600
You can’t perform that action at this time.
0 commit comments