mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Test casses added
This commit is contained in:
@@ -55,4 +55,12 @@ describe('Date Format Translations', () => {
|
|||||||
|
|
||||||
expect(result).toEqual(expectedParsedDate);
|
expect(result).toEqual(expectedParsedDate);
|
||||||
});
|
});
|
||||||
|
it('should match a date correctly', () => {
|
||||||
|
const dateString = '2023-09-22';
|
||||||
|
const dateFormat = 'yyyy-MM-dd';
|
||||||
|
|
||||||
|
const result = DateFnsUtils.isMatch(dateString, dateFormat);
|
||||||
|
|
||||||
|
expect(result).toBeTruthy();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user