From a8fc30da956bc61a0c1f1473b37ccf673af3c8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Gorej?= Date: Mon, 17 Feb 2025 17:58:16 +0100 Subject: [PATCH] test(oas31): move test out of components (#10300) Refs #10247 --- test/unit/core/plugins/oas31/{components => }/fn.js | 1 + 1 file changed, 1 insertion(+) rename test/unit/core/plugins/oas31/{components => }/fn.js (90%) diff --git a/test/unit/core/plugins/oas31/components/fn.js b/test/unit/core/plugins/oas31/fn.js similarity index 90% rename from test/unit/core/plugins/oas31/components/fn.js rename to test/unit/core/plugins/oas31/fn.js index 455940ab..92911c88 100644 --- a/test/unit/core/plugins/oas31/components/fn.js +++ b/test/unit/core/plugins/oas31/fn.js @@ -9,6 +9,7 @@ describe("isOAS31", function () { it("should recognize valid OAS31 version values", function () { expect(isOAS31Shorthand("3.1.0")).toEqual(true) expect(isOAS31Shorthand("3.1.1")).toEqual(true) + expect(isOAS31Shorthand("3.1.12")).toEqual(true) expect(isOAS31Shorthand("3.2.0")).toEqual(false) expect(isOAS31Shorthand("3.0.0-rc0")).toEqual(false) })