diff options
author | Lorraine Welch <lb2391@att.com> | 2020-02-24 14:39:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-24 14:39:37 +0000 |
commit | dbd30229bd376d31d755b07d7cdca57ec14fd23f (patch) | |
tree | 80ac26137b1c0c717b1f19a1867cea25085ac765 /ecomp-sdk/epsdk-app-overlay/src/main | |
parent | 426738783b344b83f407f19702165ec254931514 (diff) | |
parent | f2bd6fd5f2d9530a68b4966164e491a861e7ff90 (diff) |
Merge "test case written for layout component"
Diffstat (limited to 'ecomp-sdk/epsdk-app-overlay/src/main')
-rw-r--r-- | ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts index 13d3e34a..6a2bb7ff 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/layout/layout.component.spec.ts @@ -41,6 +41,9 @@ import { TranslateModule } from '@ngx-translate/core'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { LayoutComponent } from './layout.component'; import { LayoutModule } from './layout.module'; +import { MatDialog, MatDialogModule } from '@angular/material'; +import { Overlay } from '@angular/cdk/overlay'; +import { CookieService } from 'ngx-cookie-service'; describe('LayoutComponent', () => { let component: LayoutComponent; @@ -48,13 +51,14 @@ describe('LayoutComponent', () => { beforeEach( async(() => { TestBed.configureTestingModule({ - providers:[], + providers:[CookieService], imports: [ + MatDialogModule, HttpClientTestingModule, LayoutModule, RouterTestingModule, TranslateModule.forRoot(), - ] + ], }).compileComponents(); }) ); @@ -68,4 +72,10 @@ describe('LayoutComponent', () => { it('should create', () => { expect(component).toBeTruthy(); }); + + it('should test receiveCollapsed method',()=>{ + component.receiveCollapsed(true); + expect(component.collapedSideBar).toBe(true); + }) + }); |