()
| 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>`) |
no outgoing calls
no test coverage detected
searching dependent graphs…