mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
Fixing tests
This commit is contained in:
parent
e167e41731
commit
997fd569e2
1 changed files with 15 additions and 2 deletions
|
|
@ -161,8 +161,6 @@ describe('Tasks Service', function() {
|
||||||
it('toggles the _editing property', function() {
|
it('toggles the _editing property', function() {
|
||||||
tasks.editTask(task, user);
|
tasks.editTask(task, user);
|
||||||
expect(task._editing).to.eql(true);
|
expect(task._editing).to.eql(true);
|
||||||
tasks.editTask(task, user);
|
|
||||||
expect(task._editing).to.eql(false);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('sets _tags to true by default', function() {
|
it('sets _tags to true by default', function() {
|
||||||
|
|
@ -200,6 +198,21 @@ 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() {
|
describe('cloneTask', function() {
|
||||||
|
|
||||||
context('generic tasks', function() {
|
context('generic tasks', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue