Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Aug 31, 2022
1 parent 1842985 commit d1041cc
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 99 deletions.
48 changes: 24 additions & 24 deletions test/__snapshots__/basicSyntax.unit.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Basic Markdown Syntax > Blockquotes 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
> Human beings face ever more complex and urgent problems, and their effectiveness in dealing with these problems is a matter that is critical to the stability and continued progress of society.
Expand All @@ -12,7 +12,7 @@ exports[`Basic Markdown Syntax > Blockquotes 1`] = `

exports[`Basic Markdown Syntax > Callouts 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"callout callout-color2\\">
<div class=\\"callout-title\\">
Expand Down Expand Up @@ -129,13 +129,13 @@ Here is an Cite for an Callout in a Slide. Callouts support dark and white backg
exports[`Basic Markdown Syntax > Embeds 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
# Notes about Obsidian
A knowledge base that works on local Markdown files
# Link<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Link to Obsidian Homepage: http://obsidian.md
</div></div>
Expand All @@ -147,7 +147,7 @@ Link to Obsidian Homepage: http://obsidian.md
exports[`Basic Markdown Syntax > Footnotes 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Here's a simple footnote<sup id=\\"fnref:1\\" role=\\"doc-noteref\\">1</sup>
Expand All @@ -167,7 +167,7 @@ meaningful!
exports[`Basic Markdown Syntax > Footnotes in Tables 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
| Table | Col 1 | Col 2 | Col 3 |
| --------- | ----- | ----- | ----- |
Expand Down Expand Up @@ -198,7 +198,7 @@ fn3
exports[`Basic Markdown Syntax > Headers 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
# This is a heading 1
## This is a heading 2
Expand All @@ -211,39 +211,39 @@ exports[`Basic Markdown Syntax > Headers 1`] = `
exports[`Basic Markdown Syntax > Images 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Insert image with standard markdown syntax
<img src=\\"https://picsum.photos/id/1006/500/300\\" alt=\\"Image\\" style=\\"object-fit: scale-down\\">
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Insert image that lies outside of your vault
<img src=\\"/localFileSlash/Users/testUser/Desktop/howToUse.png\\" alt=\\"Image\\" style=\\"object-fit: scale-down\\">
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Insert image with obsidian markdown syntax
<img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"object-fit: scale-down\\">
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Scale image to a width of 100 px
<img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"width: 100px; object-fit: fill\\">
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Scale image to a width of 300x100 px
Expand All @@ -253,15 +253,15 @@ Scale image to a width of 300x100 px
exports[`Basic Markdown Syntax > Inline Code 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
### Text inside \`backticks\` on a line will be formatted like code.
</div>"
`;
exports[`Basic Markdown Syntax > Links 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
External Links
Expand All @@ -271,7 +271,7 @@ http://obsidian.md - automatic!
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Obsidian URI links
Expand All @@ -281,7 +281,7 @@ Obsidian URI links
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Internal Links
Expand All @@ -293,7 +293,7 @@ This Link will use its alias for displaying
exports[`Basic Markdown Syntax > Links 2`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Internal Links
Expand All @@ -305,7 +305,7 @@ This [Link](obsidian://open?vault=test-vault&file=Internal%20link) will use its
exports[`Basic Markdown Syntax > Lists 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
- Item 1
- Item 2
Expand All @@ -314,7 +314,7 @@ exports[`Basic Markdown Syntax > Lists 1`] = `
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
1. Item 1
1. Item 2
Expand All @@ -326,7 +326,7 @@ exports[`Basic Markdown Syntax > Lists 1`] = `
exports[`Basic Markdown Syntax > Math 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
\`$$egin{vmatrix}a & b\\\\
c & d
Expand All @@ -338,7 +338,7 @@ You can also do inline math like \`$s^{-2}_{n}sum_{i=1}^{n}$\`
exports[`Basic Markdown Syntax > Mermaid 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"mermaid\\">
sequenceDiagram
Expand All @@ -353,7 +353,7 @@ sequenceDiagram
exports[`Basic Markdown Syntax > Tables 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
First Header | Second Header
------------ | ------------
Expand All @@ -364,7 +364,7 @@ Content in the first column | Content in the second column
exports[`Basic Markdown Syntax > Text style 1`] = `
"<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
*This text will be italic*
Expand All @@ -380,7 +380,7 @@ _You **can** combine them_
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
<div class=\\"\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; width: 960px; min-height: 700px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Any word wrapped with two tildes (like ~~this~~) will appear crossed out.
Expand Down
Loading

0 comments on commit d1041cc

Please sign in to comment.