2018-07-18 23:47:23 +03:00
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
// Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
|
2020-11-24 06:07:36 +03:00
|
|
|
import { SwaggerObject } from "yasway";
|
|
|
|
import * as ap from "../lib/autorestPlugin/extension";
|
2019-03-09 02:38:37 +03:00
|
|
|
|
2018-07-18 23:47:23 +03:00
|
|
|
describe("autorestPlugin/pluginHost", () => {
|
|
|
|
it("shouldn't fail if no scenarios", async () => {
|
|
|
|
const swagger: SwaggerObject = {
|
2018-11-09 03:36:39 +03:00
|
|
|
swagger: "2.0",
|
|
|
|
info: { title: "sometitle", version: "2018" },
|
2018-07-18 23:47:23 +03:00
|
|
|
paths: {
|
|
|
|
"/somepath/": {
|
2018-11-16 04:04:07 +03:00
|
|
|
get: {
|
2020-11-24 06:07:36 +03:00
|
|
|
responses: {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
await ap.openApiValidationExample(swagger, "path");
|
|
|
|
});
|
|
|
|
});
|