/* eslint-env mocha */ import React from "react" import expect from "expect" import { render } from "enzyme" import Markdown from "components/providers/markdown" import { Markdown as OAS3Markdown } from "corePlugins/oas3/wrap-components/markdown.js" describe.only("Markdown component", function() { describe("Swagger 2.0", function() { it("allows heading elements", function() { const str = ` # h1 ## h2 ### h3 #### h4 ##### h5 ###### h6 ` const el = render() expect(el.html()).toEqual(`

h1

\n

h2

\n

h3

\n

h4

\n
h5
\n
h6
\n
`) }) }) describe("OAS 3", function() { it("allows heading elements", function() { const str = ` # h1 ## h2 ### h3 #### h4 ##### h5 ###### h6 ` const el = render() expect(el.html()).toEqual(`

h1

\n

h2

\n

h3

\n

h4

\n
h5
\n
h6
`) }) }) })