summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2018-07-31 14:34:39 +0530
committerTakamune Cho <tc012c@att.com>2018-08-02 13:49:30 +0000
commitdfacced6f28ce5f4cc996814c19d59aca68e3f80 (patch)
tree24260138825ca0650bf231bdc782b88be3d0a1c5
parent007abaaf261386af4263c75dbd23b42699003dcf (diff)
Test case- myVnfs component
Wrote test case to cover navigateToreference method of myVnfs component Issue-ID: APPC-1064 Change-Id: Ie6417fb2e975164c9d5226d7e270ec4f7dbbdb1a Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r--src/app/vnfs/myvnfs/myvnfs.component.spec.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/app/vnfs/myvnfs/myvnfs.component.spec.ts b/src/app/vnfs/myvnfs/myvnfs.component.spec.ts
index a1106d0..4defb4a 100644
--- a/src/app/vnfs/myvnfs/myvnfs.component.spec.ts
+++ b/src/app/vnfs/myvnfs/myvnfs.component.spec.ts
@@ -167,5 +167,10 @@ describe('MyvnfsComponent', () => {
console.log("code",block)
expect(block).toBe(400);
});
- }))
+ }));
+
+ it('should test navigateToReference', ()=>{
+ component.navigateToReference({paramData : 'data'});
+ expect(JSON.parse(sessionStorage.getItem('updateParams'))).toEqual({paramData : 'data'});
+ });
}); \ No newline at end of file