/* 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("Markdown Script Sanitization", function() { describe("Swagger 2.0", function() { it("sanitizes ` const el = render() expect(el.html()).toEqual(`

script

\n
`) }) it("sanitizes elements", function() { const str = `` const el = render() expect(el.html()).toEqual(`

\n
`) }) }) describe("OAS 3", function() { it("sanitizes ` const el = render() expect(el.html()).toEqual(`

script

`) }) it("sanitizes elements", function() { const str = `` const el = render() expect(el.html()).toEqual(`
`) }) }) })