Add challenge delete tests

This commit is contained in:
Kristian Tashkov
2016-01-28 23:21:07 +02:00
parent 1369327c44
commit 2c378bf2f2
2 changed files with 96 additions and 1 deletions

View File

@@ -422,7 +422,7 @@ api.deleteChallenge = {
async handler (req, res) {
let user = res.locals.user;
req.checkParams('challenge', res.t('challengeIdRequired')).notEmpty().isUUID();
req.checkParams('challengeId', res.t('challengeIdRequired')).notEmpty().isUUID();
let validationErrors = req.validationErrors();
if (validationErrors) throw validationErrors;