diff --git a/package.json b/package.json index 3fa8eff..2b5ddca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@synx-ai/oas3-mdx", - "version": "0.3.8", + "version": "0.3.9", "description": "Convert OpenAPI spec to Markdown files.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/tests/index.test.ts b/tests/index.test.ts index 6ad30ea..6cb2b29 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -45,7 +45,7 @@ describe("convert()", () => { // this will test a file load from web, also the format is YAML instead JSON, and will create examples it("should execute from url", () => { - return expect(convert(urlThatExists, { outPath: "./build", snippetTargets: ["node", "python"] })).rejects.toBeDefined(); + return expect(convert(urlThatExists, { outPath: "./build", snippetTargets: ["node", "python"] })).resolves.toBeUndefined(); }); // this will fail to load a file from web