Skip to content

Commit 138b496

Browse files
Andrea BarbassoAndrea Barbasso
authored andcommitted
[UXP-170] fix test
1 parent 97f30af commit 138b496

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/shared/object-detail/my-dspace-result-detail-element/item-detail-preview/item-detail-preview-field/item-detail-preview-field.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ describe('ItemDetailPreviewFieldComponent', () => {
9090
fixture.detectChanges();
9191
});
9292

93-
it('should display dc.title value', () => {
94-
const span = fixture.debugElement.query(By.css('span'));
95-
expect(span.nativeElement.innerHTML).toContain('This is just another title');
93+
it('should render a ds-markdown-viewer', () => {
94+
const mdViewer = fixture.debugElement.query(By.css('ds-markdown-viewer'));
95+
expect(mdViewer).not.toBeNull();
9696
});
9797

9898
it('should display placeholder when metadata has no value', () => {

0 commit comments

Comments
 (0)