mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-23734 Fix flaky unit test - should set the date value to todays Date object when value is today (#9939)
This commit is contained in:
parent
5165fd1433
commit
dd03ae6617
@ -277,7 +277,8 @@ describe('FormFieldModel', () => {
|
||||
const currentDate = new Date();
|
||||
const expectedDateFormat = `${DateFnsUtils.formatDate(currentDate, 'yyyy-MM-dd')}T00:00:00.000Z`;
|
||||
|
||||
expect(field.value).toEqual(currentDate);
|
||||
expect(field.value.getDate()).toEqual(currentDate.getDate());
|
||||
expect(field.value.getHours()).toEqual(currentDate.getHours());
|
||||
expect(form.values['ddmmyyy']).toEqual(expectedDateFormat);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user