mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
[TLC-380] Lint fixes
This commit is contained in:
@@ -69,7 +69,7 @@ describe('MetadataValuesComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should correctly detect a pattern on string containing "test"', () => {
|
it('should correctly detect a pattern on string containing "test"', () => {
|
||||||
const mdValue = {value: "This is a test value"} as MetadataValue;
|
const mdValue = {value: 'This is a test value'} as MetadataValue;
|
||||||
expect(comp.hasLink(mdValue)).toBe(true);
|
expect(comp.hasLink(mdValue)).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -86,7 +86,7 @@ export class MetadataRepresentationListComponent extends AbstractIncrementalList
|
|||||||
.map((metadatum: any) => Object.assign(new MetadataValue(), metadatum))
|
.map((metadatum: any) => Object.assign(new MetadataValue(), metadatum))
|
||||||
.map((metadatum: MetadataValue) => {
|
.map((metadatum: MetadataValue) => {
|
||||||
if (metadatum.isVirtual) {
|
if (metadatum.isVirtual) {
|
||||||
return this.relationshipService.resolveMetadataRepresentation(metadatum, this.parentItem, this.itemType)
|
return this.relationshipService.resolveMetadataRepresentation(metadatum, this.parentItem, this.itemType);
|
||||||
} else {
|
} else {
|
||||||
// Check for a configured browse link and return a standard metadata representation
|
// Check for a configured browse link and return a standard metadata representation
|
||||||
let searchKeyArray: string[] = [];
|
let searchKeyArray: string[] = [];
|
||||||
|
@@ -40,7 +40,7 @@ describe('BrowseLinkMetadataListElementComponent', () => {
|
|||||||
});
|
});
|
||||||
it('should NOT match isLink', () => {
|
it('should NOT match isLink', () => {
|
||||||
expect(comp.isLink).toBe(false);
|
expect(comp.isLink).toBe(false);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
beforeEach(waitForAsync(() => {
|
||||||
@@ -56,7 +56,7 @@ describe('BrowseLinkMetadataListElementComponent', () => {
|
|||||||
});
|
});
|
||||||
it('should match isLink', () => {
|
it('should match isLink', () => {
|
||||||
expect(comp.isLink).toBe(true);
|
expect(comp.isLink).toBe(true);
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user