mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-15 00:12:17 +00:00
Add test for discard method
This commit is contained in:
parent
60ee0c911f
commit
7c43f87858
1 changed files with 7 additions and 1 deletions
|
|
@ -528,7 +528,13 @@ describe('Challenges Controller', function() {
|
|||
});
|
||||
|
||||
describe('discard', function() {
|
||||
it('sets new challenge to null');
|
||||
it('sets new challenge to null', function() {
|
||||
scope.newChallenge = specHelper.newChallenge();
|
||||
|
||||
scope.discard();
|
||||
|
||||
expect(scope.newChallenge).to.not.exist;
|
||||
});
|
||||
});
|
||||
|
||||
describe('clone', function() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue