build: Update karma versions and fix compile errors

This commit is contained in:
Ralph Hopman
2025-01-15 17:45:16 +01:00
committed by Arnold Gálovics
parent cac1d11ad7
commit 34a366e6de
11 changed files with 804 additions and 187 deletions
@@ -1,13 +1,13 @@
import { TestBed } from '@angular/core/testing';
import { OfficeTreeServiceService } from './office-tree-service.service';
import { OfficeTreeService } from './office-tree-service.service';
describe('OfficeTreeServiceService', () => {
let service: OfficeTreeServiceService;
let service: OfficeTreeService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(OfficeTreeServiceService);
service = TestBed.inject(OfficeTreeService);
});
it('should be created', () => {
+1 -1
View File
@@ -11,7 +11,7 @@ describe('DateFormatPipe', () => {
}));
it('create an instance', () => {
const pipe = new DateFormatPipe(new SettingsService());
const pipe = new DateFormatPipe(new SettingsService(null, null));
expect(pipe).toBeTruthy();
});
});
+1 -1
View File
@@ -2,7 +2,7 @@ import { DatetimeFormatPipe } from './datetime-format.pipe';
describe('DatetimeFormatPipe', () => {
it('create an instance', () => {
const pipe = new DatetimeFormatPipe();
const pipe = new DatetimeFormatPipe(null);
expect(pipe).toBeTruthy();
});
});
+1 -1
View File
@@ -2,7 +2,7 @@ import { FormatNumberPipe } from './format-number.pipe';
describe('FormatNumberPipe', () => {
it('create an instance', () => {
const pipe = new FormatNumberPipe();
const pipe = new FormatNumberPipe(null, null);
expect(pipe).toBeTruthy();
});
});
+2 -1
View File
@@ -1,8 +1,9 @@
import { TranslateService } from '@ngx-translate/core';
import { YesnoPipe } from './yesno.pipe';
describe('YesnoPipe', () => {
it('create an instance', () => {
const pipe = new YesnoPipe();
const pipe = new YesnoPipe(null);
expect(pipe).toBeTruthy();
});
});
@@ -1,6 +1,6 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { WorkflowJobsComponent } from './workflow-job.component';
import { WorkflowJobsComponent } from './workflow-jobs.component';
describe('WorkflowJobsComponent', () => {
let component: WorkflowJobsComponent;