import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { JournalComponent } from './journal.component'; import { ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'; import { MatDialogModule } from '@angular/material/dialog'; describe('JournalComponent', () => { let component: JournalComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [MatDialogModule, ReactiveFormsModule, RouterTestingModule], declarations: [JournalComponent], }).compileComponents(); })); beforeEach(() => { fixture = TestBed.createComponent(JournalComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });