-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import test from 'ava'; | ||
|
||
import { transform } from './helper/lib.mjs'; | ||
|
||
test('code-eval | match', async (t) => { | ||
const input = ` | ||
\`\`\`md code-eval | ||
> [!NOTE] | ||
> Useful information that users should know, even when skimming content. | ||
:::tip[label] | ||
Some **content** with _markdown_ . | ||
::: | ||
\`\`\` | ||
`; | ||
|
||
const output = await transform(input); | ||
|
||
t.snapshot(input); | ||
t.snapshot(output); | ||
}); | ||
|
||
test('code-eval | none', async (t) => { | ||
const input = ` | ||
\`\`\`js code-eval | ||
\`\`\` | ||
`; | ||
|
||
const output = await transform(input); | ||
|
||
t.snapshot(input); | ||
t.snapshot(output); | ||
}); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Snapshot report for `test/code-eval.mjs` | ||
|
||
The actual snapshot is saved in `code-eval.mjs.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## code-eval | match | ||
|
||
> Snapshot 1 | ||
`␊ | ||
\`\`\`md code-eval␊ | ||
> [!NOTE]␊ | ||
> Useful information that users should know, even when skimming content.␊ | ||
␊ | ||
:::tip[label]␊ | ||
Some **content** with _markdown_ .␊ | ||
:::␊ | ||
\`\`\`␊ | ||
` | ||
|
||
> Snapshot 2 | ||
`> \\[!NOTE]␊ | ||
> Useful information that users should know, even when skimming content.␊ | ||
␊ | ||
:::tip\\[label]␊ | ||
Some **content** with *markdown* .␊ | ||
:::␊ | ||
` | ||
|
||
## code-eval | none | ||
|
||
> Snapshot 1 | ||
`␊ | ||
\`\`\`js code-eval␊ | ||
\`\`\`␊ | ||
` | ||
|
||
> Snapshot 2 | ||
'' |
Binary file not shown.