Test casses added

This commit is contained in:
pkundu
2023-10-03 11:43:43 +05:30
parent 208023f301
commit adcce63aa7
@@ -55,4 +55,12 @@ describe('Date Format Translations', () => {
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();
});
});