summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main
diff options
context:
space:
mode:
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.ts14
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);
+ })
+
});