diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:30:24 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:30:24 +0800 |
commit | 260976914d42519bd90f281c08065c2727660fbe (patch) | |
tree | 059a4407145fe381f1012d1ac9c1ced8b0d19cf3 /packages/sra/test/api_test.ts | |
parent | 3ca4b7e7a76b4a9397fa00962571a472ca30eda1 (diff) | |
download | dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar.gz dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar.bz2 dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar.lz dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar.xz dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.tar.zst dexon-sol-tools-260976914d42519bd90f281c08065c2727660fbe.zip |
Add basic smoke test
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); + }); +}); |