import { ComponentFixture, TestBed } from '@angular/core/testing'; import { TransactionsComponent } from './transactions.component'; import {HttpClient} from '@angular/common/http'; import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; import {FooterStubComponent, SidebarStubComponent, TopbarStubComponent} from '../../../testing'; import {TransactionsModule} from './transactions.module'; import {AppModule} from '../../app.module'; describe('TransactionsComponent', () => { let component: TransactionsComponent; let fixture: ComponentFixture; let httpClient: HttpClient; let httpTestingController: HttpTestingController; beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [ TransactionsComponent, FooterStubComponent, SidebarStubComponent, TopbarStubComponent ], imports: [ AppModule, HttpClientTestingModule, TransactionsModule ] }) .compileComponents(); httpClient = TestBed.inject(HttpClient); httpTestingController = TestBed.inject(HttpTestingController); }); beforeEach(() => { fixture = TestBed.createComponent(TransactionsComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });