From 6d0fc5f727f6c71bec3345f4e6212941663b0414 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 5 Sep 2023 19:19:23 +0300 Subject: [PATCH] fix test and text config --- ui/karma.conf.js | 2 +- ui/src/app/app.component.spec.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/karma.conf.js b/ui/karma.conf.js index 82af5020e..e4f96d35d 100644 --- a/ui/karma.conf.js +++ b/ui/karma.conf.js @@ -38,7 +38,7 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['ChromeHeadless'], - singleRun: false, + singleRun: true, restartOnFileChange: true }); }; diff --git a/ui/src/app/app.component.spec.ts b/ui/src/app/app.component.spec.ts index 9d787d782..2c21743bf 100644 --- a/ui/src/app/app.component.spec.ts +++ b/ui/src/app/app.component.spec.ts @@ -1,12 +1,14 @@ import { TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ - RouterTestingModule + RouterTestingModule, + HttpClientTestingModule ], declarations: [ AppComponent