mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Update tests/backend/specs/api/api.js
Co-authored-by: Richard Hansen <rhansen@rhansen.org>
This commit is contained in:
parent
4ec538fc3c
commit
b2f3828f5a
1 changed files with 2 additions and 2 deletions
|
@ -43,8 +43,8 @@ describe(__filename, function () {
|
||||||
const {valid, errors} = validateOpenAPI(res.body, 3);
|
const {valid, errors} = validateOpenAPI(res.body, 3);
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
const prettyErrors = JSON.stringify(errors, null, 2);
|
const prettyErrors = JSON.stringify(errors, null, 2);
|
||||||
throw new Error(`Document is not valid OpenAPI.
|
throw new Error('Document is not valid OpenAPI. ' +
|
||||||
${errors.length} validation errors:\n${prettyErrors}`);
|
`${errors.length} validation errors:\n${prettyErrors}`);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue