From dacfe71a6c8433b6d5535cb0474f8171aa2f2b67 Mon Sep 17 00:00:00 2001 From: Eylon Malin Date: Sun, 8 Dec 2019 12:11:44 +0200 Subject: UT convertResponseToUI - use ISOString to compare dates Issue-ID: VID-724 Signed-off-by: Eylon Malin Change-Id: I3077fc05413802f5891e42128bcc7e82d4fb5eb4 --- .../instantiation.templates.modal.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vid-webpack-master/src/app/shared/components') 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)'); -- cgit 1.2.3-korg