Merge branch 'mochawesome' of github.com:ether/etherpad-lite into mochawesome

mochawesome
John McLear 2021-01-30 08:11:36 +00:00
commit 28af41e906
1 changed files with 3 additions and 4 deletions

View File

@ -12,8 +12,7 @@ const supertest = require(`${__dirname}/../../../../src/node_modules/supertest`)
const settings = require(`${__dirname}/../../../../src/node/utils/Settings`);
const api = supertest(`http://${settings.ip}:${settings.port}`);
const validateOpenAPI =
require(`${__dirname}/../../../../src/node_modules/openapi-schema-validation`).validate;
const validateOpenAPI = require('ep_etherpad-lite/node_modules/openapi-schema-validation').validate;
const apiKey = common.apiKey;
let apiVersion = 1;
@ -44,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;
})