mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
fix: enable tests
This commit is contained in:
21
test/api.js
21
test/api.js
@@ -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);
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user