UT convertResponseToUI - use ISOString to compare dates 92/99292/1
authorEylon Malin <eylon.malin@intl.att.com>
Sun, 8 Dec 2019 10:11:44 +0000 (12:11 +0200)
committerEylon Malin <eylon.malin@intl.att.com>
Sun, 8 Dec 2019 10:11:44 +0000 (12:11 +0200)
Issue-ID: VID-724
Signed-off-by: Eylon Malin <eylon.malin@intl.att.com>
Change-Id: I3077fc05413802f5891e42128bcc7e82d4fb5eb4

vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts

index f3bd915..1ff0f61 100644 (file)
@@ -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)');