fix: enable tests

v1.18.x
psychobunny 4 years ago
parent 54e6003a7c
commit 7b2301ff9c

@ -236,18 +236,15 @@ describe('Read API', async () => {
}); });
describe('Write API', async () => { describe('Write API', async () => {
const apiPath = path.resolve(__dirname, '../public/openapi/write.yaml');
// let writeApi; it('should pass OpenAPI v3 validation', async () => {
// const apiPath = path.resolve(__dirname, '../public/openapi/write.yaml'); try {
await SwaggerParser.validate(apiPath);
// it('should pass OpenAPI v3 validation', async () => { } catch (e) {
// try { assert.ifError(e);
// await SwaggerParser.validate(apiPath); }
// } catch (e) { });
// assert.ifError(e);
// }
// });
// writeApi = await SwaggerParser.dereference(apiPath); console.log(await SwaggerParser.dereference(apiPath));
// console.log(writeApi);
}); });

Loading…
Cancel
Save