Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Aug 20, 2024
1 parent 61474d3 commit 69434ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions test/__snapshots__/block-anchor.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ exports[`block-anchor does not parse produce an anchor if there is content befor
`;

exports[`block-anchor handles multiple anchors in the input 1`] = `
"<hr id=\\"first-anchor\\" class=\\"visually-hidden\\" /><p>Some content</p>
<hr id=\\"second-anchor\\" class=\\"visually-hidden\\" /><p>Some more content</p>
<hr id=\\"third-anchor\\" class=\\"visually-hidden\\" />"
"<hr id="first-anchor" class="visually-hidden" /><p>Some content</p>
<hr id="second-anchor" class="visually-hidden" /><p>Some more content</p>
<hr id="third-anchor" class="visually-hidden" />"
`;

exports[`block-anchor parses anchors surrounded by other blocks 1`] = `
"<h1 id=\\"heading\\"><a href=\\"#heading\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\">Heading</span></a>Heading</h1>
<hr id=\\"my-anchor\\" class=\\"visually-hidden\\" /><p>paragraph with content</p>
"<h1 id="heading"><a href="#heading" class="yfm-anchor" aria-hidden="true"><span class="visually-hidden">Heading</span></a>Heading</h1>
<hr id="my-anchor" class="visually-hidden" /><p>paragraph with content</p>
"
`;

Expand All @@ -22,9 +22,9 @@ exports[`block-anchor parses block anchors 1`] = `
"
`;

exports[`block-anchor renders block-anchor 1`] = `"<hr id=\\"my-anchor\\" class=\\"visually-hidden\\" />"`;
exports[`block-anchor renders block-anchor 1`] = `"<hr id="my-anchor" class="visually-hidden" />"`;

exports[`block-anchor works with heading anchors 1`] = `
"<h1 id=\\"heading-anchor\\"><a href=\\"#heading-anchor\\" class=\\"yfm-anchor\\" aria-hidden=\\"true\\"><span class=\\"visually-hidden\\">Heading</span></a>Heading</h1>
<hr id=\\"my-anchor\\" class=\\"visually-hidden\\" />"
"<h1 id="heading-anchor"><a href="#heading-anchor" class="yfm-anchor" aria-hidden="true"><span class="visually-hidden">Heading</span></a>Heading</h1>
<hr id="my-anchor" class="visually-hidden" />"
`;
2 changes: 1 addition & 1 deletion test/__snapshots__/highlight-code.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`should highlight code 1`] = `
"<pre><code class=\\"hljs ts\\"><span class=\\"hljs-keyword\\">const</span> <span class=\\"hljs-attr\\">x</span>: <span class=\\"hljs-built_in\\">string</span> = <span class=\\"hljs-string\\">'y'</span>;
"<pre><code class="hljs ts"><span class="hljs-keyword">const</span> <span class="hljs-attr">x</span>: <span class="hljs-built_in">string</span> = <span class="hljs-string">'y'</span>;
</code></pre>
"
`;

0 comments on commit 69434ce

Please sign in to comment.