Skip to content

Commit

Permalink
Fixing library unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Clayton committed Jun 10, 2024
1 parent aa59ce8 commit 9f18ac8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test/blocks/library-config/mocks/blocks/chart/docx.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<table border="1"><tr><th colspan="1">chart (area, green, border)</th></tr><tr><td>
<table border="1" style="width: 100%"><tr><th colspan="1">chart (area, green, border)</th></tr><tr><td style="width: 100%">
<h3 id="lorem-ipsum-dolor-sit-amet-consectetuer-adipiscing-elit">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</h3>
</td></tr><tr><td>Revenue dollars: 2020 vs 2021 forecasted vs 2021 actuals.</td></tr><tr><td><a href="https://main--milo--adobecom.hlx.page/docs/library/blocks/chart_data/areachart.json">https://main--milo--adobecom.hlx.page/docs/library/blocks/chart_data/areachart.json</a></td></tr><tr><td>Footnote lorem ipsum dolor sit amet, consectetuer adipiscing elit.</td></tr></table>
</td></tr><tr><td style="width: 100%">Revenue dollars: 2020 vs 2021 forecasted vs 2021 actuals.</td></tr><tr><td style="width: 100%"><a href="https://main--milo--adobecom.hlx.page/docs/library/blocks/chart_data/areachart.json">https://main--milo--adobecom.hlx.page/docs/library/blocks/chart_data/areachart.json</a></td></tr><tr><td style="width: 100%">Footnote lorem ipsum dolor sit amet, consectetuer adipiscing elit.</td></tr></table>
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<table border="1"><tr><th colspan="1">carousel (lightbox)</th></tr><tr><td>Carousel lightbox</td></tr></table><table border="1"><tr><th colspan="2">section-metadata</th></tr><tr><td>style</td><td>xxl spacing</td></tr></table><p>---</p><h3 id="avocado-surprise">Avocado surprise</h3><p>
<table border="1" style="width: 100%"><tr><th colspan="1">carousel (lightbox)</th></tr><tr><td style="width: 100%">Carousel lightbox</td></tr></table><table border="1" style="width: 100%"><tr><th colspan="2">section-metadata</th></tr><tr><td style="width: 50%">style</td><td style="width: 50%">xxl spacing</td></tr></table><p>---</p><h3 id="avocado-surprise">Avocado surprise</h3><p>
<picture>
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=webply&amp;optimize=medium" media="(min-width: 600px)">
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=750&amp;format=webply&amp;optimize=medium">
<source type="image/png" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=png&amp;optimize=medium" media="(min-width: 600px)">
<img loading="lazy" alt="" type="image/png" src="https://main--milo--adobecom.hlx.page/media_1.png?width=750&amp;format=png&amp;optimize=medium" width="200" height="147">
</picture>
</p><table border="1"><tr><th colspan="2">section-metadata</th></tr><tr><td>carousel</td><td>Carousel lightbox</td></tr><tr><td>style</td><td>Center</td></tr></table><p>---</p><h3 id="cabage-surprise">Cabage surprise</h3><p>
</p><table border="1" style="width: 100%"><tr><th colspan="2">section-metadata</th></tr><tr><td style="width: 50%">carousel</td><td style="width: 50%">Carousel lightbox</td></tr><tr><td style="width: 50%">style</td><td style="width: 50%">Center</td></tr></table><p>---</p><h3 id="cabage-surprise">Cabage surprise</h3><p>
<picture>
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=webply&amp;optimize=medium" media="(min-width: 600px)">
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=750&amp;format=webply&amp;optimize=medium">
<source type="image/png" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=png&amp;optimize=medium" media="(min-width: 600px)">
<img loading="lazy" alt="" type="image/png" src="https://main--milo--adobecom.hlx.page/media_1.png?width=750&amp;format=png&amp;optimize=medium" width="200" height="147">
</picture>
</p><table border="1"><tr><th colspan="2">section-metadata</th></tr><tr><td>carousel</td><td>Carousel lightbox</td></tr><tr><td>style</td><td>Center</td></tr></table><p>---</p>
</p><table border="1" style="width: 100%"><tr><th colspan="2">section-metadata</th></tr><tr><td style="width: 50%">carousel</td><td style="width: 50%">Carousel lightbox</td></tr><tr><td style="width: 50%">style</td><td style="width: 50%">Center</td></tr></table><p>---</p>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<table border="1"><tr><th colspan="1">carousel (container0)</th></tr><tr><td>Carousel container</td></tr></table>
<table border="1" style="width: 100%"><tr><th colspan="1">carousel (container0)</th></tr><tr><td style="width: 100%">Carousel container</td></tr></table>
8 changes: 4 additions & 4 deletions test/blocks/library-config/mocks/blocks/marquee/docx.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<table border="1"><tr><th colspan="2">marquee</th></tr><tr><td colspan="2">
<table border="1" style="width: 100%"><tr><th colspan="2">marquee</th></tr><tr><td style="width: 100%" colspan="2">
<picture>
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=webply&amp;optimize=medium" media="(min-width: 600px)">
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=750&amp;format=webply&amp;optimize=medium">
<source type="image/png" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=png&amp;optimize=medium" media="(min-width: 600px)">
<img loading="lazy" alt="" type="image/png" src="https://main--milo--adobecom.hlx.page/media_1.png?width=750&amp;format=png&amp;optimize=medium" width="199" height="100">
</picture>
</td></tr><tr><td>
</td></tr><tr><td style="width: 50%">
<p>
<picture>
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=webply&amp;optimize=medium" media="(min-width: 600px)">
Expand All @@ -18,11 +18,11 @@
<h2 id="heading-xl-marquee-standard-medium-left">Heading XL Marquee standard medium left</h2>
<p>Body M Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.</p>
<p><em><a href="https://www.adobe.com">Lorem ipsum</a></em> <strong><a href="https://www.adobe.com">Learn more</a></strong> <a href="https://www.adobe.com">Text link</a></p>
</td><td>
</td><td style="width: 50%">
<picture>
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=webply&amp;optimize=medium" media="(min-width: 600px)">
<source type="image/webp" srcset="/test/blocks/library-config/mocks/media_1.png?width=750&amp;format=webply&amp;optimize=medium">
<source type="image/png" srcset="/test/blocks/library-config/mocks/media_1.png?width=2000&amp;format=png&amp;optimize=medium" media="(min-width: 600px)">
<img loading="lazy" alt="" type="image/png" src="https://main--milo--adobecom.hlx.page/media_1.png?width=750&amp;format=png&amp;optimize=medium" width="199" height="100">
</picture>
</td></tr></table>
</td></tr></table>
4 changes: 2 additions & 2 deletions test/blocks/library-config/mocks/blocks/text/docx.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<table border="1"><tr><th colspan="1">text</th></tr><tr><td>
<table border="1" style="width: 100%"><tr><th colspan="1">text</th></tr><tr><td style="width: 100%">
<h3 id="text">Text</h3>
<p>Kick things off with hundreds of premium and free presets you can access with your Lightroom subscription.</p>
<p><em><a href="bookmark://nada">Learn more</a></em> <a href="bookmark://thing">Explore the premium collection</a></p>
</td></tr></table>
</td></tr></table>

0 comments on commit 9f18ac8

Please sign in to comment.