mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00

Also: - Converted the code to the standalone structure - Made DsoEditMetadataValueFieldLoaderComponent extend AbstractComponentLoaderComponent
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import {
|
|
ComponentFixture,
|
|
TestBed,
|
|
} from '@angular/core/testing';
|
|
import { TranslateModule } from '@ngx-translate/core';
|
|
|
|
import { EntityTypeDataService } from '../../../../core/data/entity-type-data.service';
|
|
import { EntityTypeDataServiceStub } from '../../../../shared/testing/entity-type-data.service.stub';
|
|
import { DsoEditMetadataEntityFieldComponent } from './dso-edit-metadata-entity-field.component';
|
|
|
|
describe('DsoEditMetadataEntityFieldComponent', () => {
|
|
let component: DsoEditMetadataEntityFieldComponent;
|
|
let fixture: ComponentFixture<DsoEditMetadataEntityFieldComponent>;
|
|
|
|
let entityTypeService: EntityTypeDataServiceStub;
|
|
|
|
beforeEach(async () => {
|
|
entityTypeService = new EntityTypeDataServiceStub();
|
|
|
|
await TestBed.configureTestingModule({
|
|
imports: [
|
|
DsoEditMetadataEntityFieldComponent,
|
|
TranslateModule.forRoot(),
|
|
],
|
|
providers: [
|
|
{ provide: EntityTypeDataService, useValue: entityTypeService },
|
|
],
|
|
}).compileComponents();
|
|
|
|
fixture = TestBed.createComponent(DsoEditMetadataEntityFieldComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|