Update tests/backend/specs/api/api.js

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
mochawesome
John McLear 2021-01-30 07:37:39 +00:00 committed by GitHub
parent 4ec538fc3c
commit b2f3828f5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ describe(__filename, function () {
const {valid, errors} = validateOpenAPI(res.body, 3);
if (!valid) {
const prettyErrors = JSON.stringify(errors, null, 2);
throw new Error(`Document is not valid OpenAPI.
${errors.length} validation errors:\n${prettyErrors}`);
throw new Error('Document is not valid OpenAPI. ' +
`${errors.length} validation errors:\n${prettyErrors}`);
}
return;
})