diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:52:23 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-27 05:52:23 +0800 |
commit | efa67d87aa4f8d9d57883ee85b59f5aaf211eb12 (patch) | |
tree | b38844359d2df47a4ae3fab4a64f86062349a5ca /packages/sra-api/test | |
parent | 4fe410a277f13bc637ffe1c1c5b023d957a2bef8 (diff) | |
download | dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar.gz dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar.bz2 dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar.lz dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar.xz dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.tar.zst dexon-sol-tools-efa67d87aa4f8d9d57883ee85b59f5aaf211eb12.zip |
Rename to sra-api
Diffstat (limited to 'packages/sra-api/test')
-rw-r--r-- | packages/sra-api/test/api_test.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/sra-api/test/api_test.ts b/packages/sra-api/test/api_test.ts new file mode 100644 index 000000000..47353ca80 --- /dev/null +++ b/packages/sra-api/test/api_test.ts @@ -0,0 +1,15 @@ +import * as chai from 'chai'; +import * as dirtyChai from 'dirty-chai'; +import { validate } from 'openapi-schema-validation'; + +import { api } from '../src/index'; + +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); + }); +}); |