From: Eylon Malin Date: Sun, 8 Dec 2019 10:11:44 +0000 (+0200) Subject: UT convertResponseToUI - use ISOString to compare dates X-Git-Tag: 6.0.1~113^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=dacfe71a6c8433b6d5535cb0474f8171aa2f2b67;p=vid.git UT convertResponseToUI - use ISOString to compare dates Issue-ID: VID-724 Signed-off-by: Eylon Malin 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 f3bd9152e..1ff0f61e2 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 @@ describe('instantiation templates modal service', () => { 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)');