466063: test fixes

This commit is contained in:
Lotte Hofstede
2018-02-08 14:39:13 +01:00
parent 42b315f8fb
commit 7bf23d1b7a
19 changed files with 106 additions and 55 deletions

View File

@@ -20,6 +20,7 @@ export class SearchResultGridElementComponent<T extends SearchResult<K>, K exten
public constructor(@Inject('objectElementProvider') public gridable: ListableObject, private truncatableService: TruncatableService) {
super(gridable);
this.dso = this.object.dspaceObject;
console.log(JSON.stringify(this.object.hitHighlights));
}
getValues(keys: string[]): string[] {
@@ -43,6 +44,7 @@ export class SearchResultGridElementComponent<T extends SearchResult<K>, K exten
getFirstValue(key: string): string {
let result: string;
console.log(JSON.stringify(this.object.hitHighlights));
this.object.hitHighlights.some(
(md: Metadatum) => {
if (key === md.key) {