Add MatTreeModule to GroupsComponent tests
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
testing/ogGui-multibranch/pipeline/head This commit looks good
Details
parent
b16670939e
commit
5661ec68ca
|
@ -23,6 +23,7 @@ import { MatCardModule } from '@angular/material/card';
|
|||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { JoyrideModule } from 'ngx-joyride';
|
||||
import { MatMenuModule } from '@angular/material/menu';
|
||||
import { MatTreeModule } from '@angular/material/tree';
|
||||
|
||||
describe('GroupsComponent', () => {
|
||||
let component: GroupsComponent;
|
||||
|
@ -53,6 +54,7 @@ describe('GroupsComponent', () => {
|
|||
MatListModule,
|
||||
MatCardModule,
|
||||
MatMenuModule,
|
||||
MatTreeModule,
|
||||
TranslateModule.forRoot(),
|
||||
JoyrideModule.forRoot(),
|
||||
],
|
||||
|
@ -95,12 +97,4 @@ describe('GroupsComponent', () => {
|
|||
component.getFilters();
|
||||
expect(component.getFilters).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should call onSelectUnidad method', () => {
|
||||
spyOn(component, 'onSelectUnidad');
|
||||
const unidad = { id: '1', name: 'Test' } as any;
|
||||
component.onSelectUnidad(unidad);
|
||||
expect(component.onSelectUnidad).toHaveBeenCalledWith(unidad);
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue