[DURACOM-191] fix root component tests

This commit is contained in:
Andrea Barbasso
2023-12-20 13:24:50 +01:00
parent a833639fb9
commit 031e12f76b

View File

@@ -29,6 +29,11 @@ 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';
import { ThemedAdminSidebarComponent } from '../admin/admin-sidebar/themed-admin-sidebar.component';
import { ThemedHeaderNavbarWrapperComponent } from '../header-nav-wrapper/themed-header-navbar-wrapper.component';
import { ThemedBreadcrumbsComponent } from '../breadcrumbs/themed-breadcrumbs.component';
import { ThemedLoadingComponent } from '../shared/loading/themed-loading.component';
import { ThemedFooterComponent } from '../footer/themed-footer.component';
describe('RootComponent', () => {
let component: RootComponent;
@@ -67,7 +72,15 @@ describe('RootComponent', () => {
})
.overrideComponent(RootComponent, {
remove: {
imports: [NotificationsBoardComponent, SystemWideAlertBannerComponent]
imports: [
ThemedAdminSidebarComponent,
SystemWideAlertBannerComponent,
ThemedHeaderNavbarWrapperComponent,
ThemedBreadcrumbsComponent,
ThemedLoadingComponent,
ThemedFooterComponent,
NotificationsBoardComponent
]
}
})
.compileComponents();