fix: update GlobalConfigService mock to use 'tasks' instead of 'misc' for notes template

This commit is contained in:
Ivan Kalashnikov 2026-01-19 00:33:32 +07:00
parent a27fff8a2f
commit f0e2e12984

View file

@ -68,8 +68,8 @@ describe('FocusModeMainComponent', () => {
storeSpy.select.and.returnValue(of([]));
const globalConfigServiceSpy = jasmine.createSpyObj('GlobalConfigService', [], {
misc: jasmine.createSpy().and.returnValue({
taskNotesTpl: 'Default task notes template',
tasks: jasmine.createSpy().and.returnValue({
notesTemplate: 'Default task notes template',
}),
});
@ -586,8 +586,8 @@ describe('FocusModeMainComponent - notes panel (issue #5752)', () => {
storeSpy.select.and.returnValue(of([]));
const globalConfigServiceSpy = jasmine.createSpyObj('GlobalConfigService', [], {
misc: jasmine.createSpy().and.returnValue({
taskNotesTpl: 'Default task notes template',
tasks: jasmine.createSpy().and.returnValue({
notesTemplate: 'Default task notes template',
}),
});
@ -772,8 +772,8 @@ describe('FocusModeMainComponent - sync with tracking (issue #6009)', () => {
storeSpy.select.and.returnValue(of([]));
const globalConfigServiceSpy = jasmine.createSpyObj('GlobalConfigService', [], {
misc: jasmine.createSpy().and.returnValue({
taskNotesTpl: 'Default task notes template',
tasks: jasmine.createSpy().and.returnValue({
notesTemplate: 'Default task notes template',
}),
});