c28734a42ac104f9d010534ecf06fe9f3cb8d689
[portal/sdk.git] /
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2 import { RouterTestingModule } from '@angular/router/testing';
3 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
5 import { DashboardComponent } from './dashboard.component';
6 import { DashboardModule } from './dashboard.module';
7
8 describe('DashboardComponent', () => {
9   let component: DashboardComponent;
10   let fixture: ComponentFixture<DashboardComponent>;
11
12   beforeEach(async(() => {
13     TestBed.configureTestingModule({
14       imports: [
15         DashboardModule,
16         RouterTestingModule,
17         BrowserAnimationsModule,
18        ]
19     })
20     .compileComponents();
21   }));
22
23   beforeEach(() => {
24     fixture = TestBed.createComponent(DashboardComponent);
25     component = fixture.componentInstance;
26     fixture.detectChanges();
27   });
28
29   it('should create', () => {
30     expect(component).toBeTruthy();
31   });
32
33   it('should test the functions is called properly in constructor',() => {
34       expect(component.alerts.push).toHaveBeenCalled;
35       expect(component.sliders.push).toHaveBeenCalled;
36   });
37
38 });