From 260976914d42519bd90f281c08065c2727660fbe Mon Sep 17 00:00:00 2001 From: fragosti Date: Thu, 26 Jul 2018 14:30:24 -0700 Subject: Add basic smoke test --- packages/sra/test/api_test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 packages/sra/test/api_test.ts (limited to 'packages/sra/test/api_test.ts') 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); + }); +}); -- cgit v1.2.3