-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tests using ava snapshot tests
- Loading branch information
Showing
6 changed files
with
108 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
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,10 @@ | ||
# heading 1 | ||
|
||
- buy pineapple | ||
|
||
## heading 2 | ||
|
||
_italic_ is the new __bold__ | ||
|
||
| name | type | | ||
| --- | --- | |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Snapshot report for `test/index.test.js` | ||
|
||
The actual snapshot is saved in `index.test.js.snap`. | ||
|
||
Generated by [AVA](https://ava.li). | ||
|
||
## plain markdown | ||
|
||
> Snapshot 1 | ||
`<h1 id="heading-1">heading 1</h1>␊ | ||
<ul>␊ | ||
<li>buy pineapple</li>␊ | ||
</ul>␊ | ||
<h2 id="heading-2">heading 2</h2>␊ | ||
<p><em>italic</em> is the new <strong>bold</strong></p>␊ | ||
<table>␊ | ||
<thead>␊ | ||
<tr>␊ | ||
<th>name</th>␊ | ||
<th>type</th>␊ | ||
</tr>␊ | ||
</thead>␊ | ||
</table>␊ | ||
` | ||
|
||
## with code | ||
|
||
> Snapshot 1 | ||
`<h1 id="heading-1">heading 1</h1>␊ | ||
<ul>␊ | ||
<li>buy pineapple</li>␊ | ||
</ul>␊ | ||
<h2 id="heading-2">heading 2</h2>␊ | ||
<p><em>italic</em> is the new <strong>bold</strong></p>␊ | ||
<pre><code class="language-javascript"><span class="hljs-keyword">const</span> i = <span class="hljs-number">100</span>;</code></pre>␊ | ||
<table>␊ | ||
<thead>␊ | ||
<tr>␊ | ||
<th>name</th>␊ | ||
<th>type</th>␊ | ||
</tr>␊ | ||
</thead>␊ | ||
<tbody><tr>␊ | ||
<td>key</td>␊ | ||
<td><code>string|number</code></td>␊ | ||
</tr>␊ | ||
</tbody></table>␊ | ||
` |
Binary file not shown.