diff options
author | Ittay Stern <ittay.stern@att.com> | 2019-12-08 10:37:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-12-08 10:37:06 +0000 |
commit | ad530ef6478ed2c8d3d153738ed735130b4019e7 (patch) | |
tree | 45b44cb626af137df840e7d235d7c0d8379d7b62 /vid-webpack-master/src/app/shared/components/genericFormPopup | |
parent | 0bdd1969e46cd3347fb18fbd09c046ff7b7dd067 (diff) | |
parent | dacfe71a6c8433b6d5535cb0474f8171aa2f2b67 (diff) |
Merge "UT convertResponseToUI - use ISOString to compare dates"
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/genericFormPopup')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/genericFormPopup/instantiationTemplatesModal/instantiation.templates.modal.service.spec.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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)'); |