mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2025-04-19 15:29:18 +00:00
* BETTERZON-83: Making pre-generated unit tests work * BETTERZON-83: Writing unit tests for angular to improve code coverage
22 lines
494 B
TypeScript
22 lines
494 B
TypeScript
import {TestBed} from '@angular/core/testing';
|
|
|
|
import {ApiService} from './api.service';
|
|
import {HttpClientModule} from "@angular/common/http";
|
|
|
|
describe('ApiService', () => {
|
|
let service: ApiService;
|
|
|
|
beforeEach(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [
|
|
HttpClientModule
|
|
]
|
|
});
|
|
service = TestBed.inject(ApiService);
|
|
});
|
|
|
|
it('should be created', () => {
|
|
expect(service).toBeTruthy();
|
|
});
|
|
});
|