mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5867] removed unwanted character
This commit is contained in:
@@ -306,7 +306,7 @@ describe('FormFieldModel', () => {
|
|||||||
|
|
||||||
const currentDateTime = new Date();
|
const currentDateTime = new Date();
|
||||||
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 = `${format(currentDateTime, "yyyy-MM-dd'T'hh:mm")}:00.000Z`;
|
||||||
|
|
||||||
expect(field.value).toBe(expectedDateTime);
|
expect(field.value).toBe(expectedDateTime);
|
||||||
expect(form.values['datetime']).toEqual(expectedDateTimeFormat);
|
expect(form.values['datetime']).toEqual(expectedDateTimeFormat);
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ describe('DateTimeWidgetComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
widget.field = field;
|
widget.field = field;
|
||||||
const mockDate = format(new Date('1982-03-13 10:00 AM'), "yyyy-MM-dd'\T'hh:mm:ssxxx");
|
const mockDate = format(new Date('1982-03-13 10:00 AM'), "yyyy-MM-dd'T'hh:mm:ssxxx");
|
||||||
widget.onDateChanged(mockDate);
|
widget.onDateChanged(mockDate);
|
||||||
|
|
||||||
expect(widget.onFieldChanged).toHaveBeenCalledWith(field);
|
expect(widget.onFieldChanged).toHaveBeenCalledWith(field);
|
||||||
|
|||||||
Reference in New Issue
Block a user