|
| 1 | + |
| 2 | +import { TestBed, async, ComponentFixture } from '@angular/core/testing'; |
| 3 | +import { CommonModule } from '@angular/common'; |
| 4 | +import { NoopAnimationsModule } from '@angular/platform-browser/animations'; |
| 5 | + |
| 6 | +import { CovalentMediaModule } from '@covalent/core/media'; |
| 7 | +import { MatDialogModule } from '@angular/material/dialog'; |
| 8 | +import { MatIconModule } from '@angular/material/icon'; |
| 9 | +import { MatToolbarModule } from '@angular/material/toolbar'; |
| 10 | + |
| 11 | +import { CovalentHttpModule } from '@covalent/http'; |
| 12 | +import { CovalentLoadingModule } from '@covalent/core/loading'; |
| 13 | +import { CovalentDialogsModule } from '@covalent/core/dialogs'; |
| 14 | + |
| 15 | +import { VantageSystemModule } from '@td-vantage/ui-platform/system'; |
| 16 | +import { VantageUserFeedbackModule } from '@td-vantage/ui-platform/utilities'; |
| 17 | + |
| 18 | +import { TranslateModule } from '@ngx-translate/core'; |
| 19 | + |
| 20 | +import { DashboardComponent } from './dashboard.component'; |
| 21 | + |
| 22 | +describe('Dashboard Component', () => { |
| 23 | + |
| 24 | + let fixture: ComponentFixture<DashboardComponent>; |
| 25 | + let comp: DashboardComponent; |
| 26 | + |
| 27 | + beforeEach(async(() => { |
| 28 | + TestBed.configureTestingModule({ |
| 29 | + imports: [ |
| 30 | + CommonModule, |
| 31 | + NoopAnimationsModule, |
| 32 | + MatDialogModule, |
| 33 | + MatIconModule, |
| 34 | + MatToolbarModule, |
| 35 | + TranslateModule.forRoot(), |
| 36 | + CovalentMediaModule, |
| 37 | + CovalentHttpModule.forRoot(), |
| 38 | + CovalentLoadingModule, |
| 39 | + CovalentDialogsModule, |
| 40 | + VantageUserFeedbackModule, |
| 41 | + VantageSystemModule, |
| 42 | + ], |
| 43 | + declarations: [ DashboardComponent ], |
| 44 | + }).compileComponents().then(() => { |
| 45 | + fixture = TestBed.createComponent(DashboardComponent); |
| 46 | + comp = fixture.componentInstance; |
| 47 | + }); |
| 48 | + })); |
| 49 | + |
| 50 | + it('checks if component was instantiated', async(() => { |
| 51 | + fixture.detectChanges(); |
| 52 | + expect(comp).toBeTruthy(); |
| 53 | + })); |
| 54 | + |
| 55 | +}); |
0 commit comments