From 5661ec68caef9873a21e3cfd6b86a7499d038e82 Mon Sep 17 00:00:00 2001 From: Lucas Lara Date: Mon, 13 Jan 2025 13:31:31 +0100 Subject: [PATCH] Add MatTreeModule to GroupsComponent tests --- .../src/app/components/groups/groups.component.spec.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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); - }); - });