We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ab03c4 commit 469ebc2Copy full SHA for 469ebc2
test/test.jsx
@@ -14,6 +14,7 @@ import raw from 'rehype-raw'
14
import toc from 'remark-toc'
15
import ReactDom from 'react-dom/server'
16
import Markdown from '../index.js'
17
+import * as mod from '../index.js'
18
19
const own = {}.hasOwnProperty
20
@@ -25,6 +26,14 @@ function asHtml(input) {
25
26
return ReactDom.renderToStaticMarkup(input)
27
}
28
29
+test('ReactMarkdown', () => {
30
+ assert.deepEqual(
31
+ Object.keys(mod).sort(),
32
+ ['default', 'uriTransformer'],
33
+ 'should expose the public api'
34
+ )
35
+})
36
+
37
test('can render the most basic of documents (single paragraph)', () => {
38
assert.equal(asHtml(<Markdown>Test</Markdown>), '<p>Test</p>')
39
})
0 commit comments