36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MatMenuModule } from '@angular/material/menu';
|
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
import { HeaderComponent } from './header.component';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
|
|
describe('HeaderComponent', () => {
|
|
let component: HeaderComponent;
|
|
let fixture: ComponentFixture<HeaderComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
declarations: [HeaderComponent],
|
|
imports: [
|
|
MatToolbarModule,
|
|
MatButtonModule,
|
|
MatMenuModule,
|
|
MatDialogModule,
|
|
RouterTestingModule,
|
|
BrowserAnimationsModule
|
|
]
|
|
}).compileComponents();
|
|
|
|
fixture = TestBed.createComponent(HeaderComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|