diff options
author | 2020-01-24 12:46:02 +0530 | |
---|---|---|
committer | 2020-01-24 12:47:23 +0530 | |
commit | 2ed99c22f062941076e30fb2299fa7274061fdd3 (patch) | |
tree | 731e0f44bbe24bfbeb6fd43db8220d64670433ce /ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp | |
parent | c5e922499ba8da88123f6ce1690bcf536da8321e (diff) |
Added test case for menu-component
Written test case for menu-component.
Issue-ID: PORTAL-808
Change-Id: I15a46d1b01b184b6041f14320d59d299d2f2f688
Signed-off-by: Rupinder <rupinsi1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.spec.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.spec.ts index 04a691b9..f7548eef 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.spec.ts @@ -49,4 +49,9 @@ describe('MenusComponent', () => { expect(adminservice.getFnMenuItems).toHaveBeenCalled(); })); + it('should test removeMenuItems function', () => { + component.removeMenuItem(item); + expect(component.removeMenuItem).toHaveBeenCalled(); + }) + }); |