From 6c852776f8a00a2c5dafa8c2c0fcfc853ecca38a Mon Sep 17 00:00:00 2001 From: SheenaMalhotra182 Date: Mon, 21 Aug 2023 11:59:11 +0530 Subject: [PATCH] [ACS-5867] removed unwanted character --- .../lib/form/components/widgets/core/form-field.model.spec.ts | 2 +- .../form/components/widgets/date-time/date-time.widget.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/src/lib/form/components/widgets/core/form-field.model.spec.ts b/lib/core/src/lib/form/components/widgets/core/form-field.model.spec.ts index 5ae744233c..419615e1cc 100644 --- a/lib/core/src/lib/form/components/widgets/core/form-field.model.spec.ts +++ b/lib/core/src/lib/form/components/widgets/core/form-field.model.spec.ts @@ -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); diff --git a/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.spec.ts b/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.spec.ts index d5099c3c40..7c5e5268bd 100644 --- a/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.spec.ts +++ b/lib/core/src/lib/form/components/widgets/date-time/date-time.widget.spec.ts @@ -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);