Skip to content

Commit

Permalink
fix: html block test (#927)
Browse files Browse the repository at this point in the history
[![PR App][icn]][demo] | Fix RM-XYZ
:-------------------:|:----------:

## 🧰 Changes

unskipping and fixing one of the html block tests

## 🧬 QA & Testing

- [Broken on production][prod].
- [Working in this PR app][demo].


[demo]: https://markdown-pr-PR_NUMBER.herokuapp.com
[prod]: https://SUBDOMAIN.readme.io
[icn]:
https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg
  • Loading branch information
jennspencer authored Jul 1, 2024
1 parent 13924b5 commit 7830a3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/compilers/html-block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ describe('html-block compiler', () => {
expect(mdx(mdast(markdown)).trim()).toBe(markdown.trim());
});

it.skip('compiles html blocks with indents', () => {
it('compiles html blocks preserving newlines', () => {
const markdown = `
<HTMLBlock>{\`
<pre><code>
<pre><code>
const foo = () => {
const bar = {
baz: 'blammo'
}
return bar
}
</code></pre>
</code></pre>
\`}</HTMLBlock>
`;

Expand Down

0 comments on commit 7830a3d

Please sign in to comment.