Test was failing as I was not returning an error.

This commit is contained in:
gaba
2017-05-08 16:05:40 -07:00
parent 743a96cd21
commit 96cd5197e3
5 changed files with 40 additions and 14 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ const ErrNoCommentFound = new APIError('comment does not exist', {
});
// ErrNoCommentFound is returned when trying to add a tag to a comment that does not exist.
const ErrorTagNotAllowed = new APIError('tag not allowed', {
const ErrTagNotAllowed = new APIError('tag not allowed', {
translation_key: 'TAG_NOT_ALLOWED',
status: 400
});
@@ -174,7 +174,7 @@ module.exports = {
ErrMissingPassword,
ErrMissingToken,
ErrNoCommentFound,
ErrorTagNotAllowed,
ErrTagNotAllowed,
ErrEmailTaken,
ErrSpecialChars,
ErrMissingUsername,