File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { MatAutocomplete } from '@angular/material/autocomplete';
55import { RouterTestingModule } from '@angular/router/testing' ;
66import { ymlService } from 'src/app/service/yaml-parser/yaml-parser.service' ;
77import { MatrixComponent } from './matrix.component' ;
8+ import { delay } from 'rxjs' ;
89
910describe ( 'MatrixComponent' , ( ) => {
1011 let component : MatrixComponent ;
@@ -34,4 +35,12 @@ describe('MatrixComponent', () => {
3435 const table = HTMLElement . querySelector ( 'table' ) ! ;
3536 expect ( table ) . toBeTruthy ( ) ;
3637 } ) ;
38+
39+ it ( 'check for chip deletion' , ( ) => {
40+ component . rowsCurrentlyBeingShown = [ 'row1' , 'row2' ] ;
41+ component . remove ( 'row1' ) ;
42+ const newChipRow = [ 'row2' ] ;
43+ fixture . detectChanges ( ) ;
44+ expect ( component . rowsCurrentlyBeingShown ) . toEqual ( newChipRow ) ;
45+ } ) ;
3746} ) ;
You can’t perform that action at this time.
0 commit comments