mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 17:18:52 -06:00
Add tests for CreateHabitCommand
This commit is contained in:
@@ -53,7 +53,7 @@ public class CreateHabitCommand extends Command
|
||||
Habit habit = Habit.get(savedId);
|
||||
if(habit == null) throw new RuntimeException("Habit not found");
|
||||
|
||||
habit.delete();
|
||||
habit.cascadeDelete();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user