feat: expose plugins and presets on SwaggerUI global symbol (#9189)

Part of this commit is also:
- complete plugins consolidation
- complete presets consolidation
- build system consolidation

Refs #9188
This commit is contained in:
Vladimír Gorej
2023-09-05 09:56:51 +02:00
committed by GitHub
parent 8137a8b337
commit edd1153723
118 changed files with 28137 additions and 853 deletions

View File

@@ -1,6 +1,6 @@
import { loaded } from "corePlugins/swagger-js/configs-wrap-actions"
import { loaded } from "core/plugins/swagger-client/configs-wrap-actions"
describe("swagger-js plugin - withCredentials", () => {
describe("swagger-client plugin - withCredentials", () => {
it("should have no effect by default", () => {
const system = {
fn: {
@@ -34,7 +34,7 @@ describe("swagger-js plugin - withCredentials", () => {
expect(oriExecute.mock.calls.length).toBe(1)
expect(system.fn.fetch.withCredentials).toBe(true)
})
it("should allow setting flag to false via config", () => {
const system = {
fn: {
@@ -52,7 +52,7 @@ describe("swagger-js plugin - withCredentials", () => {
expect(oriExecute.mock.calls.length).toBe(1)
expect(system.fn.fetch.withCredentials).toBe(false)
})
it("should allow setting flag to true via config as string", () => {
// for query string config
const system = {
@@ -71,7 +71,7 @@ describe("swagger-js plugin - withCredentials", () => {
expect(oriExecute.mock.calls.length).toBe(1)
expect(system.fn.fetch.withCredentials).toBe(true)
})
it("should allow setting flag to false via config as string", () => {
// for query string config
const system = {