diff options
author | 2020-05-05 12:20:30 -0400 | |
---|---|---|
committer | 2020-05-16 01:50:52 +0530 | |
commit | 759e9e75fc0b5978f98f901744c87c0c8d5ef4fd (patch) | |
tree | 4b61ca0a05ec79d45f88b81142264e0407d2ddb3 /ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts | |
parent | 03abc05e6217274f557ec4987aa8e8bd34b2f4a4 (diff) |
Raptor backend java API Code(Analytics), UI Code(Overlay) and pages
component in os project
Issue-ID: PORTAL-902
Change-Id: Id297d9493a77e6816ed0f2a82c15b2eaa1e57a72
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts index 44a7ef1f..417b3a18 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/analytics/Report_List/Report/security/security.component.spec.ts @@ -4,11 +4,11 @@ import { SecurityComponent } from './security.component'; import { FormsModule } from '@angular/forms'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { componentRefresh } from '@angular/core/src/render3/instructions'; import { SecurityService } from './security.service'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/of'; - describe('SecurityComponent', () => { let component: SecurityComponent; let fixture: ComponentFixture<SecurityComponent>; @@ -56,6 +56,7 @@ describe('SecurityComponent', () => { it('should test ngOnInit method', () => { component.reportType = "Dashboard"; component.ngOnInit(); + // expect(component.showSpinner).toEqual(true); expect(component.stepNo).toEqual('2'); component.reportType = "test"; @@ -90,32 +91,24 @@ describe('SecurityComponent', () => { }); it("should test addReportUser method", () => { - component.reportUser="ind"; - component.reportOwnerList=[{"name":"ind"}]; spyOn(component, 'addReportUser').and.callThrough(); component.addReportUser(); expect(component.addReportUser).toHaveBeenCalled(); }); it("should test removeReportUser method", () => { - component.reportOwnerList=[{"name":"reportUserName"}]; - component.removeReportUser("reportUserName"); + component.removeReportUser("test"); }); it("should test addReportRole method", () => { - component.reportRole="reportRole"; - component.reportRoleList=[{"name":"reportRole"}]; component.addReportRole(); }); it("should test removeReportRole method", () => { - component.reportSecurityRoles=[{"id":"roleId"}]; component.removeReportRole("test"); }); it("should test saveSecurityTabData method", () => { - component.reportOwner="reportOwner"; - component.reportOwnerList=[{"name":"reportOwner"}]; spyOn(component, 'saveSecurityTabData').and.callThrough(); component.saveSecurityTabData(); expect(component.saveSecurityTabData).toHaveBeenCalled(); |