MCPcopy
hub / github.com/swagger-api/swagger-ui / getConfigs

Function getConfigs

test/unit/components/markdown.jsx:9–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 describe("Swagger 2.0", function () {
8 it("allows elements with class, style and data-* attribs", function () {
9 const getConfigs = () => ({ useUnsafeMarkdown: true })
10 const str = `<span class="method" style="border-width: 1px" data-attr="value">ONE</span>`
11 const el = render(<Markdown source={str} getConfigs={getConfigs} />)
12 expect(el.prop("outerHTML")).toEqual(`<div class="markdown"><p><span class="method" style="border-width: 1px" data-attr="value">ONE</span></p>\n</div>`)

Callers 15

renderMethod · 0.85
constructorMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85
MarkdownFunction · 0.85
Oauth2Class · 0.85
mapStateToPropsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…