Unit test fixes

This commit is contained in:
Alisa Ismailati
2023-11-01 09:32:11 +01:00
parent 3cf3cc8850
commit d4d0fe0cbe
180 changed files with 2567 additions and 1101 deletions

View File

@@ -27,6 +27,8 @@ import { RouteService } from '../core/services/route.service';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { MenuServiceStub } from '../shared/testing/menu-service.stub';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { NotificationsBoardComponent } from '../shared/notifications/notifications-board/notifications-board.component';
import { SystemWideAlertBannerComponent } from '../system-wide-alert/alert-banner/system-wide-alert-banner.component';
describe('RootComponent', () => {
let component: RootComponent;
@@ -62,7 +64,13 @@ describe('RootComponent', () => {
RouteService
],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
}).compileComponents();
})
.overrideComponent(RootComponent, {
remove: {
imports: [NotificationsBoardComponent, SystemWideAlertBannerComponent]
}
})
.compileComponents();
});
beforeEach(() => {