Group plans reorder tasks (#8358)
* Added move route for group tasks * Added group task reorder to front end * Added syncing with group task order * Fixed linting issues * Added missing exec and abstracted move code * Added unit test for moveTask
This commit is contained in:
committed by
Matteo Pagliazzi
parent
2690caed35
commit
1590d955cd
@@ -90,6 +90,14 @@ describe('Tasks Service', function() {
|
||||
$httpBackend.flush();
|
||||
});
|
||||
|
||||
it('calls group move task endpoint', function() {
|
||||
var taskId = 1;
|
||||
var position = 0;
|
||||
$httpBackend.expectPOST('/api/v3/group-tasks/' + taskId + '/move/to/' + position).respond({});
|
||||
tasks.moveGroupTask(taskId, position);
|
||||
$httpBackend.flush();
|
||||
});
|
||||
|
||||
it('calls add check list item endpoint', function() {
|
||||
var taskId = 1;
|
||||
$httpBackend.expectPOST(apiV3Prefix + '/' + taskId + '/checklist').respond({});
|
||||
|
||||
Reference in New Issue
Block a user