[ACS-5867] removed unwanted character

This commit is contained in:
SheenaMalhotra182
2023-09-20 15:47:19 +05:30
parent f3e204fc71
commit 6c852776f8
2 changed files with 2 additions and 2 deletions
@@ -306,7 +306,7 @@ describe('FormFieldModel', () => {
const currentDateTime = new Date();
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(form.values['datetime']).toEqual(expectedDateTimeFormat);
@@ -102,7 +102,7 @@ describe('DateTimeWidgetComponent', () => {
});
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);
expect(widget.onFieldChanged).toHaveBeenCalledWith(field);