Merge branch 'mochawesome' of github.com:ether/etherpad-lite into mochawesome
commit
28af41e906
|
@ -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;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue