mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +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 { NotificationsService } from '../../shared/notifications/notifications.service';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { SharedModule } from '../../shared/shared.module';
|
|
||||||
import { UiSwitchModule } from 'ngx-ui-switch';
|
import { UiSwitchModule } from 'ngx-ui-switch';
|
||||||
|
import { SystemWideAlertModule } from '../system-wide-alert.module';
|
||||||
|
|
||||||
describe('SystemWideAlertFormComponent', () => {
|
describe('SystemWideAlertFormComponent', () => {
|
||||||
let comp: SystemWideAlertFormComponent;
|
let comp: SystemWideAlertFormComponent;
|
||||||
@@ -52,7 +52,7 @@ describe('SystemWideAlertFormComponent', () => {
|
|||||||
router = new RouterStub();
|
router = new RouterStub();
|
||||||
|
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [FormsModule, SharedModule, UiSwitchModule, TranslateModule.forRoot()],
|
imports: [FormsModule, SystemWideAlertModule, UiSwitchModule, TranslateModule.forRoot()],
|
||||||
declarations: [SystemWideAlertFormComponent],
|
declarations: [SystemWideAlertFormComponent],
|
||||||
providers: [
|
providers: [
|
||||||
{provide: SystemWideAlertDataService, useValue: systemWideAlertDataService},
|
{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 { SystemWideAlertDataService } from '../core/data/system-wide-alert-data.service';
|
||||||
import { SystemWideAlertRoutingModule } from './system-wide-alert-routing.module';
|
import { SystemWideAlertRoutingModule } from './system-wide-alert-routing.module';
|
||||||
import { UiSwitchModule } from 'ngx-ui-switch';
|
import { UiSwitchModule } from 'ngx-ui-switch';
|
||||||
|
import { NgbDatepickerModule, NgbTimepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -13,6 +14,8 @@ import { UiSwitchModule } from 'ngx-ui-switch';
|
|||||||
SharedModule,
|
SharedModule,
|
||||||
UiSwitchModule,
|
UiSwitchModule,
|
||||||
SystemWideAlertRoutingModule,
|
SystemWideAlertRoutingModule,
|
||||||
|
NgbTimepickerModule,
|
||||||
|
NgbDatepickerModule,
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
SystemWideAlertBannerComponent
|
SystemWideAlertBannerComponent
|
||||||
|
Reference in New Issue
Block a user