Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzturc committed Aug 30, 2022
1 parent a5524df commit 1a08aeb
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 160 deletions.
10 changes: 5 additions & 5 deletions test/__snapshots__/basicSyntax.unit.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -215,39 +215,39 @@ exports[`Basic Markdown Syntax > Images 1`] = `
Insert image with standard markdown syntax
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"https://picsum.photos/id/1006/500/300\\" alt=\\"Image\\" ></img></p>
<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; min-height: 700px; width: 960px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Insert image that lies outside of your vault
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"/localFileSlash/Users/testUser/Desktop/howToUse.png\\" alt=\\"Image\\" ></img></p>
<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; min-height: 700px; width: 960px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Insert image with obsidian markdown syntax
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"/documentation/Image.jpg\\" alt=\\"\\" ></img></p>
<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; min-height: 700px; width: 960px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Scale image to a width of 100 px
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"width: 100px\\"></img></p>
<img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"width: 100px; object-fit: scale-down\\">
</div>
---
<!-- .slide: class=\\"drop\\" -->
<div class=\\"reset-margin\\" style=\\"position: absolute; left: 0px; top: 0px; height: 700px; min-height: 700px; width: 960px; display: flex; flex-direction: column; align-items: center; justify-content: center\\" absolute=\\"true\\">
Scale image to a width of 300x100 px
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"object-fit: cover; width: 300px; height: 100px\\"></img></p>
<img src=\\"/documentation/Image.jpg\\" alt=\\"\\" style=\\"object-fit: cover; width: 300px; height: 100px\\">
</div>"
`;
Expand Down
8 changes: 3 additions & 5 deletions test/__snapshots__/extendedSyntax.unit.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ exports[`Extended Markdown Syntax > Excalidraw support 1`] = `
#### Excalidraw support
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"path/to/Sample.excalidraw.svg\\" alt=\\"\\" style=\\"width: 100px\\"></img></p>
<img src=\\"path/to/Sample.excalidraw.svg\\" alt=\\"\\" style=\\"width: 100px; object-fit: scale-down\\">
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"path/to/Sample.excalidraw.svg\\" alt=\\"\\" style=\\"width: 300px; height: 400px\\"></img></p>
<img src=\\"path/to/Sample.excalidraw.svg\\" alt=\\"\\" style=\\"width: 300px; height: 400px; object-fit: scale-down\\">
</div>"
`;
Expand Down Expand Up @@ -368,8 +367,7 @@ note: this is not! Only the speaker might see this text.
- and this bulletpoint
- or this picture
<p style=\\"line-height: 0\\" class=\\"reset-paragraph image-paragraph\\"><img src=\\"https://picsum.photos/id/1005/250/250\\" alt=\\"\\" ></img></p>
<img src=\\"https://picsum.photos/id/1005/250/250\\" alt=\\"\\" style=\\"object-fit: scale-down\\">
"
`;
Expand Down
Loading

0 comments on commit 1a08aeb

Please sign in to comment.