diff --git a/ogWebconsole/src/app/components/groups/groups.component.spec.ts b/ogWebconsole/src/app/components/groups/groups.component.spec.ts index 1dd83f5..60f8c01 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.spec.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.spec.ts @@ -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); - }); - });