Skip to content

Commit edb1eb7

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2212 Fix tests
(cherry picked from commit f59cce6)
1 parent 5b5d3be commit edb1eb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ describe('ItemSearchResultListElementComponent', () => {
358358

359359
it('should show highlighted title', () => {
360360
const titleField = fixture.debugElement.query(By.css('.item-list-title'));
361-
expect(titleField.nativeNode.innerHTML).toEqual(dcTitle);
361+
expect(titleField.nativeNode.innerHTML).toEqual('This is just another <em>title</em>');
362362
});
363363
});
364364

@@ -370,7 +370,7 @@ describe('ItemSearchResultListElementComponent', () => {
370370

371371
it('should show highlighted title', () => {
372372
const titleField = fixture.debugElement.query(By.css('.item-list-title'));
373-
expect(titleField.nativeNode.innerHTML).toEqual('<em>Michel</em>');
373+
expect(titleField.nativeNode.innerHTML).toEqual('&lt;em&gt;Michel&lt;/em&gt;');
374374
});
375375
});
376376

@@ -382,7 +382,7 @@ describe('ItemSearchResultListElementComponent', () => {
382382

383383
it('should show highlighted title', () => {
384384
const titleField = fixture.debugElement.query(By.css('.item-list-title'));
385-
expect(titleField.nativeNode.innerHTML).toEqual('<em>Science</em>');
385+
expect(titleField.nativeNode.innerHTML).toEqual('&lt;em&gt;Science&lt;/em&gt;');
386386
});
387387
});
388388

0 commit comments

Comments
 (0)