summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/markdown/test')
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/__snapshots__/markdown-renderer.js.snap63
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/fixtures/source.js63
-rw-r--r--plugins/jetpack/extensions/blocks/markdown/test/markdown-renderer.js17
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]}
->
- &lt;h1&gt;Heading&lt;/h1&gt;
-&lt;h2&gt;2nd Heading&lt;/h2&gt;
-&lt;ul&gt;
-&lt;li&gt;List 1&lt;/li&gt;
-&lt;li&gt;List 1&lt;/li&gt;
-&lt;/ul&gt;
-&lt;ul&gt;
-&lt;li&gt;List 2&lt;/li&gt;
-&lt;li&gt;List 2&lt;/li&gt;
-&lt;/ul&gt;
-&lt;ul&gt;
-&lt;li&gt;List 3&lt;/li&gt;
-&lt;li&gt;List 3&lt;/li&gt;
-&lt;/ul&gt;
-&lt;ol&gt;
-&lt;li&gt;Red&lt;/li&gt;
-&lt;li&gt;Green&lt;/li&gt;
-&lt;li&gt;Blue&lt;/li&gt;
-&lt;/ol&gt;
-&lt;ul&gt;
-&lt;li&gt;
-&lt;p&gt;A list item.&lt;/p&gt;
-&lt;p&gt;With multiple paragraphs.&lt;/p&gt;
-&lt;/li&gt;
-&lt;li&gt;
-&lt;p&gt;Another item in the list.&lt;/p&gt;
-&lt;/li&gt;
-&lt;/ul&gt;
-&lt;p&gt;&lt;em&gt;em&lt;/em&gt;
-&lt;em&gt;em&lt;/em&gt;
-&lt;strong&gt;strong&lt;/strong&gt;
-&lt;strong&gt;strong&lt;/strong&gt;
-&lt;em&gt;&lt;strong&gt;em strong&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
-&lt;p&gt;*Literal asterisks*&lt;/p&gt;
-&lt;p&gt;Link to &lt;a href="https://wordpress.com"&gt;WordPress&lt;/a&gt; and &lt;a href="https://jetpack.com/"&gt;https://jetpack.com/&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;email me: &lt;a href="mailto:address@example.com"&gt;address@example.com&lt;/a&gt;&lt;/p&gt;
-&lt;p&gt;Inline &lt;code&gt;code&lt;/code&gt; here.&lt;/p&gt;
-&lt;pre&gt;&lt;code&gt;Block of code with backticks.
-&lt;/code&gt;&lt;/pre&gt;
-&lt;pre&gt;&lt;code&gt;Block of code prefixed by four spaces
-&lt;/code&gt;&lt;/pre&gt;
-&lt;blockquote&gt;
-&lt;p&gt;a blockquote.&lt;/p&gt;
-&lt;p&gt;2nd paragraph in the blockquote.&lt;/p&gt;
-&lt;h2&gt;H2 in a blockquote&lt;/h2&gt;
-&lt;/blockquote&gt;
-&lt;p&gt;A bunch of horizontal rules:&lt;/p&gt;
-&lt;hr&gt;
-&lt;hr&gt;
-&lt;hr&gt;
-&lt;hr&gt;
-&lt;hr&gt;
-&lt;p&gt;👋&lt;/p&gt;
-
-</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();
- } );
-} );