import { TestBed } from '@angular/core/testing'; import { TransactionService } from '@app/_services/transaction.service'; import {HttpClient} from '@angular/common/http'; import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing'; describe('TransactionService', () => { let httpClient: HttpClient; let httpTestingController: HttpTestingController; let service: TransactionService; beforeEach(() => { TestBed.configureTestingModule({ imports: [HttpClientTestingModule] }); httpClient = TestBed.inject(HttpClient); httpTestingController = TestBed.inject(HttpTestingController); service = TestBed.inject(TransactionService); }); it('should be created', () => { expect(service).toBeTruthy(); }); });