aboutsummaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-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