fix(tests): add validation of comment translations (#41537)
This commit is contained in:
committed by
GitHub
parent
654d66186e
commit
0d3158d4f4
@ -27,6 +27,8 @@ const schema = Joi.object()
|
||||
challengeOrder: Joi.number(),
|
||||
challengeType: Joi.number().min(0).max(11).required(),
|
||||
checksum: Joi.number(),
|
||||
// __commentCounts is only used to test the comment replacement
|
||||
__commentCounts: Joi.object(),
|
||||
// TODO: require this only for normal challenges, not certs
|
||||
dashedName: Joi.string().regex(slugRE),
|
||||
description: Joi.when('challengeType', {
|
||||
|
Reference in New Issue
Block a user