mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
refactor: rename test spec migration in format 'v1 to v2'
This commit is contained in:
parent
651d5dc183
commit
d6506e95d1
1 changed files with 11 additions and 9 deletions
|
|
@ -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 {
|
||||
Loading…
Add table
Add a link
Reference in a new issue