[TLC-380] Lint fixes

This commit is contained in:
Kim Shepherd
2023-02-06 14:23:33 +13:00
parent 63af2e079c
commit 5aab1af5f7
3 changed files with 4 additions and 4 deletions

View File

@@ -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);
}); });

View File

@@ -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[] = [];

View File

@@ -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);
}) });
}); });
}); });