mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
fix GroupFormComponent tests
This commit is contained in:
@@ -38,6 +38,11 @@ import { ValidateGroupExists } from './validators/group-exists.validator';
|
|||||||
import { NoContent } from '../../../core/shared/NoContent.model';
|
import { NoContent } from '../../../core/shared/NoContent.model';
|
||||||
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
|
||||||
import { DSONameServiceMock } from '../../../shared/mocks/dso-name.service.mock';
|
import { DSONameServiceMock } from '../../../shared/mocks/dso-name.service.mock';
|
||||||
|
import { FormComponent } from '../../../shared/form/form.component';
|
||||||
|
import { AlertComponent } from '../../../shared/alert/alert.component';
|
||||||
|
import { ContextHelpDirective } from '../../../shared/context-help.directive';
|
||||||
|
import { MembersListComponent } from './members-list/members-list.component';
|
||||||
|
import { SubgroupsListComponent } from './subgroup-list/subgroups-list.component';
|
||||||
|
|
||||||
describe('GroupFormComponent', () => {
|
describe('GroupFormComponent', () => {
|
||||||
let component: GroupFormComponent;
|
let component: GroupFormComponent;
|
||||||
@@ -220,7 +225,17 @@ describe('GroupFormComponent', () => {
|
|||||||
{ provide: AuthorizationDataService, useValue: authorizationService },
|
{ provide: AuthorizationDataService, useValue: authorizationService },
|
||||||
],
|
],
|
||||||
schemas: [NO_ERRORS_SCHEMA]
|
schemas: [NO_ERRORS_SCHEMA]
|
||||||
}).compileComponents();
|
})
|
||||||
|
.overrideComponent(GroupFormComponent, {
|
||||||
|
remove: { imports: [
|
||||||
|
FormComponent,
|
||||||
|
AlertComponent,
|
||||||
|
ContextHelpDirective,
|
||||||
|
MembersListComponent,
|
||||||
|
SubgroupsListComponent
|
||||||
|
]}
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
|
Reference in New Issue
Block a user