Revert "fixes task edit cancellation commit (#7931)"
This reverts commit bbf15e1756.
This commit is contained in:
@@ -158,9 +158,11 @@ describe('Tasks Service', function() {
|
||||
task = specHelper.newTask();
|
||||
});
|
||||
|
||||
it('sets _editing to true', function() {
|
||||
it('toggles the _editing property', function() {
|
||||
tasks.editTask(task, user);
|
||||
expect(task._editing).to.eql(true);
|
||||
tasks.editTask(task, user);
|
||||
expect(task._editing).to.eql(false);
|
||||
});
|
||||
|
||||
it('sets _tags to true by default', function() {
|
||||
@@ -198,20 +200,6 @@ describe('Tasks Service', function() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('cancelTaskEdit', function() {
|
||||
var task;
|
||||
|
||||
beforeEach(function(){
|
||||
task = specHelper.newTask();
|
||||
});
|
||||
|
||||
it('sets _editing to false', function() {
|
||||
task._editing = true;
|
||||
tasks.cancelTaskEdit(task);
|
||||
expect(task._editing).to.eql(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('cloneTask', function() {
|
||||
|
||||
context('generic tasks', function() {
|
||||
|
||||
Reference in New Issue
Block a user