mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Add test for discard method
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user