mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5390] [ADF-5391] Add multivalue cardview for Date, Datetime, Integers and Decimal properties. (#6980)
* [ADF-5390] Addd multivalue cardview for Date, Datetime, Integers and Decimal properties * Fix unit test * Fix linting * Fix e2e tests * fix e2e Co-authored-by: Eugenio Romano <eugenio.romano@alfresco.com>
This commit is contained in:
@@ -36,11 +36,16 @@ describe('FullNamePipe', () => {
|
||||
pipe = TestBed.inject(MultiValuePipe);
|
||||
});
|
||||
|
||||
it('should add the separator when a list is provided', () => {
|
||||
it('should add the separator when a string list is provided', () => {
|
||||
const values = ['cat', 'house', 'dog'];
|
||||
expect(pipe.transform(values)).toBe('cat, house, dog');
|
||||
});
|
||||
|
||||
it('should add the separator when a number list is provided', () => {
|
||||
const values = [1, 2, 3];
|
||||
expect(pipe.transform(values)).toBe('1, 2, 3');
|
||||
});
|
||||
|
||||
it('should add custom separator when set', () => {
|
||||
const values = ['cat', 'house', 'dog'];
|
||||
const customSeparator = ' - ';
|
||||
|
Reference in New Issue
Block a user