Fix issues with module changes

This commit is contained in:
Yana De Pauw
2023-01-24 11:24:13 +01:00
parent 45248b4ee8
commit 715d3ae014
2 changed files with 5 additions and 2 deletions

View File

@@ -12,8 +12,8 @@ import { RouterStub } from '../../shared/testing/router.stub';
import { NotificationsService } from '../../shared/notifications/notifications.service';
import { Router } from '@angular/router';
import { FormsModule } from '@angular/forms';
import { SharedModule } from '../../shared/shared.module';
import { UiSwitchModule } from 'ngx-ui-switch';
import { SystemWideAlertModule } from '../system-wide-alert.module';
describe('SystemWideAlertFormComponent', () => {
let comp: SystemWideAlertFormComponent;
@@ -52,7 +52,7 @@ describe('SystemWideAlertFormComponent', () => {
router = new RouterStub();
TestBed.configureTestingModule({
imports: [FormsModule, SharedModule, UiSwitchModule, TranslateModule.forRoot()],
imports: [FormsModule, SystemWideAlertModule, UiSwitchModule, TranslateModule.forRoot()],
declarations: [SystemWideAlertFormComponent],
providers: [
{provide: SystemWideAlertDataService, useValue: systemWideAlertDataService},

View File

@@ -6,6 +6,7 @@ import { SharedModule } from '../shared/shared.module';
import { SystemWideAlertDataService } from '../core/data/system-wide-alert-data.service';
import { SystemWideAlertRoutingModule } from './system-wide-alert-routing.module';
import { UiSwitchModule } from 'ngx-ui-switch';
import { NgbDatepickerModule, NgbTimepickerModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
imports: [
@@ -13,6 +14,8 @@ import { UiSwitchModule } from 'ngx-ui-switch';
SharedModule,
UiSwitchModule,
SystemWideAlertRoutingModule,
NgbTimepickerModule,
NgbDatepickerModule,
],
exports: [
SystemWideAlertBannerComponent