diff options
Diffstat (limited to 'packages/sra/test')
-rw-r--r-- | packages/sra/test/api_test.ts | 14 | ||||
-rw-r--r-- | packages/sra/test/sample_test.ts | 3 |
2 files changed, 14 insertions, 3 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); + }); +}); diff --git a/packages/sra/test/sample_test.ts b/packages/sra/test/sample_test.ts deleted file mode 100644 index e7edd6719..000000000 --- a/packages/sra/test/sample_test.ts +++ /dev/null @@ -1,3 +0,0 @@ -describe('test', () => { - it('should pass', () => undefined); -}); |