refactor: rename test spec migration in format 'v1 to v2'

This commit is contained in:
Ivan Kalashnikov 2026-01-18 23:18:42 +07:00
parent 651d5dc183
commit d6506e95d1

View file

@ -10,16 +10,18 @@ describe('Migrate MiscConfig to TasksConfig', () => {
it('should migrate settings from misc to tasks', () => {
const initialState = {
misc: {
isConfirmBeforeTaskDelete: true,
isAutoAddWorkedOnToToday: true,
isAutMarkParentAsDone: false,
isTrayShowCurrentTask: true,
isTurnOffMarkdown: false,
defaultProjectId: 'project_1',
taskNotesTpl: 'Template',
globalConfig: {
misc: {
isConfirmBeforeTaskDelete: true,
isAutoAddWorkedOnToToday: true,
isAutMarkParentAsDone: false,
isTrayShowCurrentTask: true,
isTurnOffMarkdown: false,
defaultProjectId: 'project_1',
taskNotesTpl: 'Template',
},
tasks: {},
},
tasks: {},
};
const migratedState = migration.migrateState(initialState) as {