commit | dacfe71a6c8433b6d5535cb0474f8171aa2f2b67 | [log] [tgz] |
---|---|---|
author | Eylon Malin <eylon.malin@intl.att.com> | Sun Dec 08 12:11:44 2019 +0200 |
committer | Eylon Malin <eylon.malin@intl.att.com> | Sun Dec 08 12:11:44 2019 +0200 |
tree | b4bb0f3aa0e3a56a573c1f400bcd1e05a15b80df | |
parent | bfc61c4bb476d05ed0e06ecc9e68121e364cfceb [diff] |
UT convertResponseToUI - use ISOString to compare dates Issue-ID: VID-724 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: I3077fc05413802f5891e42128bcc7e82d4fb5eb4
diff --git a/vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts b/vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts index f3bd915..1ff0f61 100644 --- a/vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts +++ b/vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts
@@ -97,7 +97,7 @@ const tableRows: InstantiationTemplatesRowModel[] = service.convertResponseToUI(jobs); expect(tableRows).toHaveLength(1); expect(tableRows[0].userId).toEqual('16807000'); - expect(tableRows[0].createDate).toEqual('2018-04-29 12:52:35'); + expect((new Date(tableRows[0].createDate)).toISOString()).toEqual('2018-04-29T09:52:35.000Z'); expect(tableRows[0].instanceName).toEqual('serviceInstanceName'); expect(tableRows[0].instantiationStatus).toEqual('FAILED'); expect(tableRows[0].region).toEqual('hvf6 (AAA1)');