35 lines
1009 B
TypeScript
35 lines
1009 B
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { DashboardComponent } from './dashboard.component';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { NoopAnimationsModule, BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
describe('DashboardComponent', () => {
|
|
let component: DashboardComponent;
|
|
let fixture: ComponentFixture<DashboardComponent>;
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [DashboardComponent],
|
|
imports: [
|
|
HttpClientModule,
|
|
NoopAnimationsModule,
|
|
BrowserAnimationsModule,
|
|
],
|
|
providers: [DashboardComponent]
|
|
}).compileComponents();
|
|
|
|
component = TestBed.inject(DashboardComponent);
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(DashboardComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should compile', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|