diff --git a/tests/lib/__snapshots__/markdown.test.js.snap b/tests/lib/__snapshots__/markdown.test.js.snap new file mode 100644 index 00000000..d782ce39 --- /dev/null +++ b/tests/lib/__snapshots__/markdown.test.js.snap @@ -0,0 +1,144 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Markdown.render() should render footnote correctly 1`] = ` +"

[1]
+hello-world: https://github.com/BoostIO/Boostnote/

+
+
+
    +
  1. hello-world β†©οΈŽ

    +
  2. +
+
+" +`; + +exports[`Markdown.render() should render line breaks correctly 1`] = ` +"

This is the first line.
+This is the second line.

+" +`; + +exports[`Markdown.render() should render line breaks correctly 2`] = ` +"

This is the first line. +This is the second line.

+" +`; + +exports[`Markdown.render() should render shortcuts correctly 1`] = ` +"

Ctrl

+

Ctrl

+" +`; + +exports[`Markdown.render() should renders KaTeX correctly 1`] = ` +"c=pmsqrta2+b2c = pmsqrt{a^2 + b^2}c=pmsqrta2+b2 +" +`; + +exports[`Markdown.render() should renders abbrevations correctly 1`] = ` +"

abbr

+

The HTML specification
+is maintained by the W3C.

+" +`; + +exports[`Markdown.render() should renders checkboxes 1`] = ` +" +" +`; + +exports[`Markdown.render() should renders codeblock correctly 1`] = ` +"
+        filename.js
+        2
+        var project = 'boostnote';
+
+      
" +`; + +exports[`Markdown.render() should renders definition lists correctly 1`] = ` +"

definition list

+

list 1

+
+
Term 1
+
Definition 1
+
Term 2
+
Definition 2a
+
Definition 2b
+
+

Term 3
+~

+

list 2

+
+
Term 1
+
+

Definition 1

+
+
Term 2 with inline markup
+
+

Definition 2

+
  { some code, part of Definition 2 }
+
+

Third paragraph of definition 2.

+
+
+" +`; + +exports[`Markdown.render() should renders markdown correctly 1`] = ` +"

Welcome to Boostnote!

+

Click here to edit markdown πŸ‘‹

+ +

Docs πŸ“

+ +
+

Article Archive πŸ“š

+ +
+

Community 🍻

+ +" +`; + +exports[`Markdown.render() should renders sub correctly 1`] = ` +"

sub

+

H20

+" +`; + +exports[`Markdown.render() should renders sup correctly 1`] = ` +"

sup

+

29th

+" +`; + +exports[`Markdown.render() should text with quotes correctly 1`] = ` +"

This is a β€œQUOTE”.

+" +`; + +exports[`Markdown.render() should text with quotes correctly 2`] = ` +"

This is a "QUOTE".

+" +`; diff --git a/tests/lib/snapshots/markdown-test.js.md b/tests/lib/snapshots/markdown-test.js.md deleted file mode 100644 index 4111c2f2..00000000 --- a/tests/lib/snapshots/markdown-test.js.md +++ /dev/null @@ -1,172 +0,0 @@ -# Snapshot report for `tests/lib/markdown-test.js` - -The actual snapshot is saved in `markdown-test.js.snap`. - -Generated by [AVA](https://ava.li). - -## Markdown.render() should render footnote correctly - -> Snapshot 1 - - `

[1]
␊ - hello-world: https://github.com/BoostIO/Boostnote/

␊ -
␊ -
␊ -
    ␊ -
  1. hello-world β†©οΈŽ

    ␊ -
  2. ␊ -
␊ -
␊ - ` - -## Markdown.render() should render line breaks correctly - -> Snapshot 1 - - `

This is the first line.
␊ - This is the second line.

␊ - ` - -> Snapshot 2 - - `

This is the first line.␊ - This is the second line.

␊ - ` - -## Markdown.render() should render shortcuts correctly - -> Snapshot 1 - - `

Ctrl

␊ -

Ctrl

␊ - ` - -## Markdown.render() should renders KaTeX correctly - -> Snapshot 1 - - `c=pmsqrta2+b2c = pmsqrt{a^2 + b^2}␊ - ` - -## Markdown.render() should renders abbrevations correctly - -> Snapshot 1 - - `

abbr

␊ -

The HTML specification
␊ - is maintained by the W3C.

␊ - ` - -## Markdown.render() should renders checkboxes - -> Snapshot 1 - - `␊ - ` - -## Markdown.render() should renders codeblock correctly - -> Snapshot 1 - - `
␊
-            filename.js␊
-            2␊
-            var project = 'boostnote';␊
-    ␊
-          
` - -## Markdown.render() should renders definition lists correctly - -> Snapshot 1 - - `

definition list

␊ -

list 1

␊ -
␊ -
Term 1
␊ -
Definition 1
␊ -
Term 2
␊ -
Definition 2a
␊ -
Definition 2b
␊ -
␊ -

Term 3
␊ - ~

␊ -

list 2

␊ -
␊ -
Term 1
␊ -
␊ -

Definition 1

␊ -
␊ -
Term 2 with inline markup
␊ -
␊ -

Definition 2

␊ -
  { some code, part of Definition 2 }␊
-    
␊ -

Third paragraph of definition 2.

␊ -
␊ -
␊ - ` - -## Markdown.render() should renders markdown correctly - -> Snapshot 1 - - `

Welcome to Boostnote!

␊ -

Click here to edit markdown πŸ‘‹

␊ - ␊ -

Docs πŸ“

␊ - ␊ -
␊ -

Article Archive πŸ“š

␊ - ␊ -
␊ -

Community 🍻

␊ - ␊ - ` - -## Markdown.render() should renders sub correctly - -> Snapshot 1 - - `

sub

␊ -

H20

␊ - ` - -## Markdown.render() should renders sup correctly - -> Snapshot 1 - - `

sup

␊ -

29th

␊ - ` - -## Markdown.render() should text with quotes correctly - -> Snapshot 1 - - `

This is a β€œQUOTE”.

␊ - ` - -> Snapshot 2 - - `

This is a "QUOTE".

␊ - ` diff --git a/tests/lib/snapshots/markdown-test.js.snap b/tests/lib/snapshots/markdown-test.js.snap deleted file mode 100644 index 3f5ec41c..00000000 Binary files a/tests/lib/snapshots/markdown-test.js.snap and /dev/null differ