Skip to content

Commit

Permalink
Implement failing test for #412
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed Feb 26, 2019
1 parent 0c63b85 commit 1875ded
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mdx/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ Some text <!-- an inline comment -->
expect(result).toContain('<!-- a template literal -->')
})

it('Should turn a newline into a space', async () => {
const result = await renderWithReact(`
[foo](/foo)
[bar](/bar)
`)

expect(result).toContain('<a href="/foo">foo</a> <a href="/bar">bar</a>')
})

it('Should convert style strings to camelized objects', async () => {
const result = await mdx(
`
Expand Down

0 comments on commit 1875ded

Please sign in to comment.