mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Fix issues with module changes
This commit is contained in:
@@ -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},
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user