Add comprehensive tests for vac-optimizer application
Co-authored-by: THoguet <61246905+THoguet@users.noreply.github.com>
This commit is contained in:
1 parent
f99db8b82d
commit
80a588741b
16 files changed
+385
-37
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { provideZonelessChangeDetection } from '@angular/core';
|
||||
import { CalendarYear } from './calendar-year';
|
||||
|
||||
describe('CalendarYear', () => {
|
||||
@@ -8,7 +8,8 @@ describe('CalendarYear', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [CalendarYear]
|
||||
imports: [CalendarYear],
|
||||
providers: [provideZonelessChangeDetection()]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ export class CalendarYear {
|
||||
this.selectedDates.optimizeVacations(
|
||||
{ ...vacationData },
|
||||
this.calendarSettingsService,
|
||||
this.calendarService,
|
||||
);
|
||||
}
|
||||
this.isLoading.set(false);
|
||||
|
||||
Reference in new issue
Block a user