diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/markdown/test')
3 files changed, 0 insertions, 143 deletions
diff --git a/plugins/jetpack/extensions/blocks/markdown/test/__snapshots__/markdown-renderer.js.snap b/plugins/jetpack/extensions/blocks/markdown/test/__snapshots__/markdown-renderer.js.snap deleted file mode 100644 index ebc9bfc2..00000000 --- a/plugins/jetpack/extensions/blocks/markdown/test/__snapshots__/markdown-renderer.js.snap +++ /dev/null @@ -1,63 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`MarkdownRenderer renders markdown to HTML as expected 1`] = ` -<RawHTML - className="markdown" - onClick={[Function]} -> - <h1>Heading</h1> -<h2>2nd Heading</h2> -<ul> -<li>List 1</li> -<li>List 1</li> -</ul> -<ul> -<li>List 2</li> -<li>List 2</li> -</ul> -<ul> -<li>List 3</li> -<li>List 3</li> -</ul> -<ol> -<li>Red</li> -<li>Green</li> -<li>Blue</li> -</ol> -<ul> -<li> -<p>A list item.</p> -<p>With multiple paragraphs.</p> -</li> -<li> -<p>Another item in the list.</p> -</li> -</ul> -<p><em>em</em> -<em>em</em> -<strong>strong</strong> -<strong>strong</strong> -<em><strong>em strong</strong></em></p> -<p>*Literal asterisks*</p> -<p>Link to <a href="https://wordpress.com">WordPress</a> and <a href="https://jetpack.com/">https://jetpack.com/</a></p> -<p>email me: <a href="mailto:address@example.com">address@example.com</a></p> -<p>Inline <code>code</code> here.</p> -<pre><code>Block of code with backticks. -</code></pre> -<pre><code>Block of code prefixed by four spaces -</code></pre> -<blockquote> -<p>a blockquote.</p> -<p>2nd paragraph in the blockquote.</p> -<h2>H2 in a blockquote</h2> -</blockquote> -<p>A bunch of horizontal rules:</p> -<hr> -<hr> -<hr> -<hr> -<hr> -<p>👋</p> - -</RawHTML> -`; diff --git a/plugins/jetpack/extensions/blocks/markdown/test/fixtures/source.js b/plugins/jetpack/extensions/blocks/markdown/test/fixtures/source.js deleted file mode 100644 index 0c24e6ba..00000000 --- a/plugins/jetpack/extensions/blocks/markdown/test/fixtures/source.js +++ /dev/null @@ -1,63 +0,0 @@ -export const source = ` -# Heading - -## 2nd Heading - -- List 1 -- List 1 - -* List 2 -* List 2 - -+ List 3 -+ List 3 - -1. Red -2. Green -3. Blue - -* A list item. - - With multiple paragraphs. - -* Another item in the list. - -_em_ -*em* -**strong** -__strong__ -***em strong*** - -\\\*Literal asterisks\\\* - -Link to [WordPress](https://wordpress.com) and <https://jetpack.com/> - -email me: <address@example.com> - -Inline \`code\` here. - -\`\`\` -Block of code with backticks. -\`\`\` - - Block of code prefixed by four spaces - -> a blockquote. -> -> 2nd paragraph in the blockquote. -> -> ## H2 in a blockquote - -A bunch of horizontal rules: - -* * * - -*** - -***** - -- - - - ---------------------------------------- - -👋`; diff --git a/plugins/jetpack/extensions/blocks/markdown/test/markdown-renderer.js b/plugins/jetpack/extensions/blocks/markdown/test/markdown-renderer.js deleted file mode 100644 index f8890eb3..00000000 --- a/plugins/jetpack/extensions/blocks/markdown/test/markdown-renderer.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * External dependencies - */ -import { shallow } from 'enzyme'; -import React from 'react'; - -/** - * Internal dependencies - */ -import { source } from './fixtures/source' -import MarkdownRenderer from '../renderer'; - -describe( 'MarkdownRenderer', () => { - test( 'renders markdown to HTML as expected', () => { - expect( shallow( <MarkdownRenderer className='markdown' source={ source } /> ) ).toMatchSnapshot(); - } ); -} ); |