diff options
author | 2020-02-28 17:42:20 +0530 | |
---|---|---|
committer | 2020-02-28 15:35:27 +0000 | |
commit | 4c6f6a443cb2e6effa995e77d56689c1c2dab4ad (patch) | |
tree | 7a961f7c4e2c7de9cea8f2acff473c9f4b11182e /portal-FE-common/src/app/shared/pipes/elipsis | |
parent | a03dfa273ef6e196bf65acc54b9357d35eb0ed5e (diff) |
Fixed the test cases,added sonar config
Fixed test cases and added sonar config details
Issue-ID: PORTAL-837
Change-Id: Ie4aa104871cfbbd6c6e36500f5ef2e250bafb575
Signed-off-by: jz385p <jegadeesh.babu@att.com>
Diffstat (limited to 'portal-FE-common/src/app/shared/pipes/elipsis')
-rw-r--r-- | portal-FE-common/src/app/shared/pipes/elipsis/elipsis.pipe.spec.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/portal-FE-common/src/app/shared/pipes/elipsis/elipsis.pipe.spec.ts b/portal-FE-common/src/app/shared/pipes/elipsis/elipsis.pipe.spec.ts index 22a477d3..a553fb45 100644 --- a/portal-FE-common/src/app/shared/pipes/elipsis/elipsis.pipe.spec.ts +++ b/portal-FE-common/src/app/shared/pipes/elipsis/elipsis.pipe.spec.ts @@ -38,8 +38,14 @@ import { ElipsisPipe } from './elipsis.pipe'; describe('ElipsisPipe', () => { + let pipe; it('create an instance', () => { - const pipe = new ElipsisPipe(); + pipe = new ElipsisPipe(); expect(pipe).toBeTruthy(); }); + it('removeImage should return stubbed value', () => { + spyOn(pipe, 'transform').and.callThrough(); + pipe.transform('PipeTest','2'); + expect(pipe.transform).toHaveBeenCalledWith('PipeTest','2'); + }); }); |