swagger-tests
Version:
A typescript framework for testing an api against a swagger 3.0 json file.
16 lines (13 loc) • 374 B
text/typescript
import {} from 'jasmine'
import { API, SwaggerApi } from "swagger-tests";
describe('SwaggerApi', () => {
it("should fetch the apidocs", () => {
expect(API).toBeDefined();
expect(API).toEqual(jasmine.any(SwaggerApi));
});
describe('openapi', () => {
it('should be defined', () => {
expect(API.openapi).toEqual(jasmine.any(String));
})
});
});