mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 15:03:07 +00:00
Test fix for CI
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</div>
|
||||
<div *ngFor="let metadata of metadataList" class="row">
|
||||
<div class="col-md-12">
|
||||
<strong>{{metadata.key}}</strong>
|
||||
<strong>{{'item.preview.' + metadata.key | translate}}</strong>
|
||||
<p>{{metadata.value.value}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -48,8 +48,8 @@ describe('SubmissionImportExternalPreviewComponent test suite', () => {
|
||||
{ provide: Router, useValue: new RouterStub() },
|
||||
{ provide: SubmissionService, useValue: new SubmissionServiceStub() },
|
||||
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
|
||||
NgbModal,
|
||||
NgbActiveModal,
|
||||
{ provide: NgbModal, useValue: { open: () => {/*comment*/} } },
|
||||
{ provide: NgbActiveModal, useValue: { dismiss: () => {/*comment*/} } },
|
||||
SubmissionImportExternalPreviewComponent
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
@@ -97,7 +97,6 @@ describe('SubmissionImportExternalPreviewComponent test suite', () => {
|
||||
const expected = [
|
||||
{ key: 'dc.identifier.uri', value: Metadata.first(comp.externalSourceEntry.metadata, 'dc.identifier.uri') }
|
||||
];
|
||||
comp.ngOnInit();
|
||||
fixture.detectChanges();
|
||||
|
||||
expect(comp.metadataList).toEqual(expected);
|
||||
|
Reference in New Issue
Block a user