mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Api v3 Migration (WIP) (#7131)
* v3 migration: remove old code and polish user migration * v3 migration: start to work on challenges * wip v3 migration * wip v3 migration: fix _id -> id for reminders, tags and checklists
This commit is contained in:
@@ -13,7 +13,7 @@ describe('shared.ops.updateTask', () => {
|
||||
],
|
||||
|
||||
reminders: [{
|
||||
_id: '123',
|
||||
id: '123',
|
||||
startDate: now,
|
||||
time: now,
|
||||
}],
|
||||
@@ -29,7 +29,7 @@ describe('shared.ops.updateTask', () => {
|
||||
checklist: [{
|
||||
completed: false,
|
||||
text: 'item',
|
||||
_id: '123',
|
||||
id: '123',
|
||||
}],
|
||||
},
|
||||
});
|
||||
@@ -41,10 +41,10 @@ describe('shared.ops.updateTask', () => {
|
||||
expect(res.checklist).to.eql([{
|
||||
completed: false,
|
||||
text: 'item',
|
||||
_id: '123',
|
||||
id: '123',
|
||||
}]);
|
||||
expect(res.reminders).to.eql([{
|
||||
_id: '123',
|
||||
id: '123',
|
||||
startDate: now,
|
||||
time: now,
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user