fix: enable tests

This commit is contained in:
psychobunny
2020-10-13 13:10:49 -04:00
parent 54e6003a7c
commit 7b2301ff9c

View File

@@ -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);
} catch (e) {
assert.ifError(e);
}
});
// it('should pass OpenAPI v3 validation', async () => { console.log(await SwaggerParser.dereference(apiPath));
// try {
// await SwaggerParser.validate(apiPath);
// } catch (e) {
// assert.ifError(e);
// }
// });
// writeApi = await SwaggerParser.dereference(apiPath);
// console.log(writeApi);
}); });