diff options
Diffstat (limited to 'packages/sra/test/api_test.ts')
-rw-r--r-- | packages/sra/test/api_test.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/sra/test/api_test.ts b/packages/sra/test/api_test.ts new file mode 100644 index 000000000..dcc10d8b8 --- /dev/null +++ b/packages/sra/test/api_test.ts @@ -0,0 +1,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); + }); +}); |