mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 07:22:57 +08:00
Fix tests.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user