Test case- myVnfs component 95/58195/2
authorArundathi Patil <arundpil@in.ibm.com>
Tue, 31 Jul 2018 09:04:39 +0000 (14:34 +0530)
committerTakamune Cho <tc012c@att.com>
Thu, 2 Aug 2018 13:49:30 +0000 (13:49 +0000)
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>
src/app/vnfs/myvnfs/myvnfs.component.spec.ts

index a1106d0..4defb4a 100644 (file)
@@ -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