mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5857] fixed code smell due to nested template literals
This commit is contained in:
@@ -305,8 +305,11 @@ describe('FormFieldModel', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const currentDateTime = new Date();
|
const currentDateTime = new Date();
|
||||||
|
const formattedDate = format(currentDateTime, 'yyyy-MM-dd');
|
||||||
|
const formattedTime = format(currentDateTime, 'hh:mm');
|
||||||
|
|
||||||
const expectedDateTime = format(currentDateTime, 'yyyy-MM-dd hh:mm');
|
const expectedDateTime = format(currentDateTime, 'yyyy-MM-dd hh:mm');
|
||||||
const expectedDateTimeFormat = `${format(currentDateTime, `yyyy-MM-dd'T'hh:mm`)}:00.000Z`;
|
const expectedDateTimeFormat = formattedDate + `T${formattedTime}:00.000Z`;
|
||||||
|
|
||||||
expect(field.value).toBe(expectedDateTime);
|
expect(field.value).toBe(expectedDateTime);
|
||||||
expect(form.values['datetime']).toEqual(expectedDateTimeFormat);
|
expect(form.values['datetime']).toEqual(expectedDateTimeFormat);
|
||||||
|
|||||||
Reference in New Issue
Block a user