Skip to content

Commit

Permalink
Format test fixtures with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Apr 29, 2024
1 parent aa1e74b commit 617056c
Show file tree
Hide file tree
Showing 13 changed files with 3,763 additions and 20 deletions.
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

2 changes: 1 addition & 1 deletion fixtures/error/expected.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ <h1>Error</h1>
}
}
</code></pre>
<p>More content</p>
<p>More content</p>
2 changes: 1 addition & 1 deletion fixtures/errorEmpty/expected.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1>Error</h1>
<p>This is an invalid diagram</p>
<p>More content</p>
<p>More content</p>
441 changes: 440 additions & 1 deletion fixtures/forest/expected.html

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion fixtures/forest/expected.md

Large diffs are not rendered by default.

2,199 changes: 2,195 additions & 4 deletions fixtures/multiple/expected.html

Large diffs are not rendered by default.

164 changes: 160 additions & 4 deletions fixtures/multiple/expected.md

Large diffs are not rendered by default.

443 changes: 441 additions & 2 deletions fixtures/nested/expected.html

Large diffs are not rendered by default.

29 changes: 28 additions & 1 deletion fixtures/nested/expected.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion fixtures/no-mermaid/expected.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<h1>No medmaid</h1>
<pre><code class="language-js">console.log('This is a JavaScript code block')
</code></pre>
</code></pre>
443 changes: 441 additions & 2 deletions fixtures/simple/expected.html

Large diffs are not rendered by default.

28 changes: 27 additions & 1 deletion fixtures/simple/expected.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/remark-mermaidjs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { VFile } from 'vfile'

testFixturesDirectory<RemarkMermaidOptions>({
directory: new URL('../fixtures', import.meta.url),
prettier: true,
tests: {
'expected.md'(input, options) {
return remark().use(remarkMermaid, options).process(input)
Expand Down

0 comments on commit 617056c

Please sign in to comment.