diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-07-31 14:34:39 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-08-02 13:49:30 +0000 |
commit | dfacced6f28ce5f4cc996814c19d59aca68e3f80 (patch) | |
tree | 24260138825ca0650bf231bdc782b88be3d0a1c5 /src/app | |
parent | 007abaaf261386af4263c75dbd23b42699003dcf (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>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/vnfs/myvnfs/myvnfs.component.spec.ts | 7 |
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 |