mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 21:43:04 +00:00
[TLC-380] Template link, spec test, doc fixup as per review
This commit is contained in:
@@ -52,6 +52,7 @@ describe('MetadataValuesComponent', () => {
|
||||
comp.mdValues = mockMetadata;
|
||||
comp.separator = mockSeperator;
|
||||
comp.label = mockLabel;
|
||||
comp.urlRegex = /^.*test.*$/;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
@@ -67,4 +68,9 @@ describe('MetadataValuesComponent', () => {
|
||||
expect(separators.length).toBe(mockMetadata.length - 1);
|
||||
});
|
||||
|
||||
it('should correctly detect a pattern on string containing "test"', () => {
|
||||
const mdValue = {value: "This is a test value"} as MetadataValue;
|
||||
expect(comp.hasLink(mdValue)).toBe(true);
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user