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>
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 @@
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