diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-07-18 16:18:49 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-07-18 19:15:38 +0000 |
commit | 5ee2a97a94224ae22acfd929b5208ce9e5b62840 (patch) | |
tree | 3fc47546c579c275fbb6222b94efabde429ed1c3 /src/app/shared/services | |
parent | 3d0d6a39df25ed3b04c85d470cead16d9c414e5f (diff) |
Fixed error
Unable to run the test cases due to the below error in paramShare
service spec file,
"Argument of type '{ displayName: string; displayValue: string;}[]' is
not assignable to parameter of type 'Expected<{[index: string]: string } >' "
Fixed this error.
Issue-ID: APPC-1064
Change-Id: I9b9e99e9a5ed4a14469eb595625d1b3fd91e6672
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'src/app/shared/services')
-rw-r--r-- | src/app/shared/services/paramShare.service.spec.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/app/shared/services/paramShare.service.spec.ts b/src/app/shared/services/paramShare.service.spec.ts index de3983a..1769198 100644 --- a/src/app/shared/services/paramShare.service.spec.ts +++ b/src/app/shared/services/paramShare.service.spec.ts @@ -23,7 +23,7 @@ limitations under the License. import { inject, TestBed } from '@angular/core/testing'; import { ParamShareService } from './paramShare.service'; -describe('ParamShareService', () => { +fdescribe('ParamShareService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ParamShareService] @@ -65,13 +65,11 @@ describe('ParamShareService', () => { })); it('should set and return proper sharedData value', inject([ParamShareService], (service: ParamShareService) => { - service.setData([ - { displayName: 'A-IP', displayValue: '234' }, - { displayName: 'B-IP', displayValue: '10.168.15.15' }]); + service.setData( + { displayName: 'A-IP', displayValue: '234' }); let sharedData = service.getData(); - expect(sharedData).toEqual([ - { displayName: 'A-IP', displayValue: '234' }, - { displayName: 'B-IP', displayValue: '10.168.15.15' }]); + expect(sharedData).toEqual( + { displayName: 'A-IP', displayValue: '234' }); })); it('should set templateData value', inject([ParamShareService], (service: ParamShareService) => { |