Fix tests.

This commit is contained in:
gaba
2017-05-08 12:57:37 -07:00
parent 6310528804
commit c4c0ee79cd
8 changed files with 106 additions and 54 deletions
+14
View File
@@ -75,6 +75,18 @@ const ErrMissingToken = new APIError('token is required', {
status: 400
});
// ErrNoCommentFound is returned when trying to add a tag to a comment that does not exist.
const ErrNoCommentFound = new APIError('comment does not exist', {
translation_key: 'COMMENT_NOT_FOUND',
status: 400
});
// ErrNoCommentFound is returned when trying to add a tag to a comment that does not exist.
const ErrorTagNotAllowed = new APIError('tag not allowed', {
translation_key: 'TAG_NOT_ALLOWED',
status: 400
});
// ErrAssetCommentingClosed is returned when a comment or action is attempted on
// a stream where commenting has been closed.
class ErrAssetCommentingClosed extends APIError {
@@ -161,6 +173,8 @@ module.exports = {
ErrMissingEmail,
ErrMissingPassword,
ErrMissingToken,
ErrNoCommentFound,
ErrorTagNotAllowed,
ErrEmailTaken,
ErrSpecialChars,
ErrMissingUsername,