You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
476 B
JavaScript
23 lines
476 B
JavaScript
'use strict';
|
|
|
|
const assert = require('assert');
|
|
const path = require('path');
|
|
const SwaggerParser = require('@apidevtools/swagger-parser');
|
|
|
|
describe('Read API', () => {
|
|
let readApi;
|
|
|
|
it('should pass OpenAPI v3 validation', async () => {
|
|
const apiPath = path.resolve(__dirname, '../public/openapi/read.yaml');
|
|
try {
|
|
readApi = await SwaggerParser.validate(apiPath);
|
|
} catch (e) {
|
|
assert.ifError(e);
|
|
}
|
|
});
|
|
});
|
|
|
|
describe('Write API', () => {
|
|
let writeApi;
|
|
});
|