diff options
author | 2020-02-16 09:22:59 +0530 | |
---|---|---|
committer | 2020-02-16 09:23:08 +0530 | |
commit | e8baea11cde32ce6fd88884d979e414fee2b47bc (patch) | |
tree | 995f265f6f4b3684ae064c93c59cd0146a644325 /ecomp-sdk/epsdk-app-overlay | |
parent | 4a0d5a9fb73d3095d149d6e9d7c5fda0e39ed666 (diff) |
error in header component resolved
error in header component resolved
Issue-ID: PORTAL-813
Change-Id: Iaabdb8d4564c74c508fb731cb733a4e1a96482c4
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts index 02cfd6b6..7418893a 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/components/header/header.component.spec.ts @@ -42,6 +42,7 @@ import { HttpClientModule } from '@angular/common/http'; import { HeaderComponent } from './header.component'; import { LayoutModule } from '../../layout.module'; +import { CookieService } from 'ngx-cookie-service'; describe('HeaderComponent', () => { let component: HeaderComponent; @@ -49,11 +50,12 @@ describe('HeaderComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ + providers:[CookieService], imports: [ LayoutModule, RouterTestingModule, TranslateModule.forRoot(), - HttpClientModule + HttpClientModule, ], }) .compileComponents(); @@ -69,9 +71,5 @@ describe('HeaderComponent', () => { expect(component).toBeTruthy(); }); - it('should test isToggled function', () => { - console.log(component.isToggled()); - document.getElementById("body").classList.add("push-right"); - expect(component.isToggled()).toBe(true); - }); + }); |