Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixed the test cases,added sonar config
[portal.git]
/
portal-FE-common
/
src
/
app
/
shared
/
pipes
/
elipsis
/
elipsis.pipe.spec.ts
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
22a477d
..
a553fb4
100644
(file)
--- 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', () => {
import { ElipsisPipe } from './elipsis.pipe';
describe('ElipsisPipe', () => {
+ let pipe;
it('create an instance', () => {
it('create an instance', () => {
-
const
pipe = new ElipsisPipe();
+ pipe = new ElipsisPipe();
expect(pipe).toBeTruthy();
});
expect(pipe).toBeTruthy();
});
+ it('removeImage should return stubbed value', () => {
+ spyOn(pipe, 'transform').and.callThrough();
+ pipe.transform('PipeTest','2');
+ expect(pipe.transform).toHaveBeenCalledWith('PipeTest','2');
+ });
});
});