import { Validators } from '@angular/forms'
export const VIDEO_COMMENT_TEXT = {
- VALIDATORS: [ Validators.required, Validators.minLength(2), Validators.maxLength(3000) ],
+ VALIDATORS: [ Validators.required, Validators.minLength(1), Validators.maxLength(3000) ],
MESSAGES: {
'required': 'Comment is required.',
'minlength': 'Comment must be at least 2 characters long.',
it('Should fail with a short comment', async function () {
const fields = {
- text: 'h'.repeat(3001)
+ text: ''
}
await makePostBodyRequest({ url: server.url, path: pathThread, token: server.accessToken, fields })
})
it('Should fail with a short comment', async function () {
const fields = {
- text: 'h'.repeat(3001)
+ text: ''
}
await makePostBodyRequest({ url: server.url, path: pathComment, token: server.accessToken, fields })
})