chore(tests): tests to go along with #1883 challenges fix

This commit is contained in:
Tyler Renelle
2014-02-14 20:37:16 -07:00
parent 191b789d76
commit 78fcdd20c9
2 changed files with 27 additions and 1 deletions
-1
View File
@@ -98,7 +98,6 @@ api.score = function(req, res, next) {
if (err) return next(err);
if (!chal) {
task.challenge.broken = 'CHALLENGE_DELETED';
user.markModified('tasks');
return user.save();
}
var t = chal.tasks[task.id];