aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra/test/api_test.ts
blob: dcc10d8b834de1083cc942bf2eafad9e13ce8a54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as chai from 'chai';
import * as dirtyChai from 'dirty-chai';
import { api } from '../src/api';
import { validate } from 'openapi-schema-validation';

chai.config.includeStack = true;
chai.use(dirtyChai);

describe('SRA OpenAPI Schema', () => {
    it('should be a valid OpenAPI schema', () => {
        const result = validate(api, 3);
        chai.expect(result.errors).to.have.length(0);
    });
});