11// Jest Snapshot v1, https://goo.gl/fbAQLP
22
3- exports [` 'attributes' option should handle "src" and "srcset" tags correctly : errors 1` ] = `
3+ exports [` 'attributes' option should handle "sources" tags: errors 1` ] = `
44Array [
55 "ModuleError: Module Error (from /path/to/file.js):
66HtmlSourceError: Bad value for attribute \\ "src\\ " on element \\ "img\\ ": Must be non-empty (From line 10, column 1; to line 10, column 15)",
@@ -447,7 +447,7 @@ HtmlSourceError: Bad value for attribute \\"srcset\\" on element \\"img\\": Must
447447]
448448` ;
449449
450- exports[` ' attributes' option should handle " src " and " srcset " tags correctly : module 1 ` ] = `
450+ exports[` ' attributes' option should handle " sources " tags : module 1 ` ] = `
451451" // Imports
452452var ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ = require (\\" ../../src/runtime/getUrl.js\\ " );
453453var ___HTML_LOADER_IMPORT_0___ = require (\\" ./image.png\\ " );
@@ -458,7 +458,7 @@ var code = \\"<img srcset=\\\\\\"image.png 480w 2x broken\\\\\\" src=\\\\\\"\\"
458458module .exports = code ;"
459459`;
460460
461- exports [` 'attributes' option should handle "src" and "srcset" tags correctly : result 1` ] = `
461+ exports [` 'attributes' option should handle "sources" tags: result 1` ] = `
462462"<img srcset =\\"image.png 480w 2x broken\\" src =\\"/webpack/public/path/image.png\\" alt =\\"Elva dressed as a fairy\\">
463463<img srcset =\\"image.png broken\\" src =\\"/webpack/public/path/image.png\\" alt =\\"Elva dressed as a fairy\\">
464464<img src =\\"\\" srcset =\\"\\">
@@ -736,7 +736,7 @@ exports[`'attributes' option should handle "src" and "srcset" tags correctly: re
736736"
737737`;
738738
739- exports[`'attributes' option should handle " src" and " srcset " tags correctly : warnings 1`] = `Array []`;
739+ exports[`'attributes' option should handle " sources" tags: warnings 1`] = `Array []`;
740740
741741exports[`'attributes' option should handle all src attributes in all HTML tags except img tag (testing filter option): errors 1`] = `Array []`;
742742
17781778
17791779exports[`'attributes' option should handle attributes with a " boolean" notation equals " true" : warnings 1`] = `Array []`;
17801780
1781- exports[`'attributes' option should handle the " include" type of tags: errors 1`] = `Array []`;
1781+ exports[`'attributes' option should handle the " include" tags: errors 1`] = `Array []`;
17821782
1783- exports[`'attributes' option should handle the " include" type of tags: module 1`] = `
1783+ exports[`'attributes' option should handle the " include" tags: module 1`] = `
17841784" // Imports
17851785var ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ = require(\\" ../../src/runtime/getUrl.js\\");
17861786var ___HTML_LOADER_IMPORT_0___ = require(\\"./include-header.html\\");
@@ -1790,36 +1790,47 @@ var ___HTML_LOADER_IMPORT_2___ = require(\\"./include-content.html\\");
17901790var ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);
17911791var ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);
17921792var ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);
1793- var code = \\"<div>\\\\n <article>\\\\n BeforeHeaderText\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"AfterHeaderText\\\\n <ol>\\\\n <li>Grow a long, majestic beard.</li>\\\\n <li>Wear a tall, pointed hat.</li>\\\\n <li>Have I mentioned the beard?</li>\\\\n </ol>\\\\n BeforeFooterText\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"AfterFooterText\\\\n <!--< div><include src =\\\\\\"./include-content.html \\\\\\"></include> </div>-- >\\\\n TextBeforeOpenDiv <div>TextAfterOpenDiv\\ " + ___HTML_LOADER_REPLACEMENT_2___ + \\"TextBeforeCloseDiv </div>TextAfterCloseDiv \\\\n </article> \\\\n</div >\\\\n\\";
1793+ var code = \\"<div>\\\\n <article>\\\\n BeforeHeaderText\\" + ___HTML_LOADER_REPLACEMENT_0___ + \\"AfterHeaderText\\\\n <ol>\\\\n <li>Grow a long, majestic beard.</li>\\\\n <li>Wear a tall, pointed hat.</li>\\\\n <li>Have I mentioned the beard?</li>\\\\n </ol>\\\\n BeforeFooterText\\" + ___HTML_LOADER_REPLACEMENT_1___ + \\"AfterFooterText\\\\n TextBeforeOpenDiv< div>TextAfterOpenDiv\\" + ___HTML_LOADER_REPLACEMENT_2___ + \\"TextBeforeCloseDiv</div>TextAfterCloseDiv \\\\n </article>\\\\n </div>\\\\n\\\\n<!-- Future improvements -- >\\\\nBEFORE\\\\n\\" + ___HTML_LOADER_REPLACEMENT_2___ + \\"\\\\nAFTER\\\\n\\\\n <div>TEXT</div>\\\\n<div>\\\\n \\ " + ___HTML_LOADER_REPLACEMENT_2___ + \\"\\\\n </div>\\\\n<div>TEXT</div>\\\\n\\\\n<!-- WRONG -->\\\\n<div><include src = \\\\\\"./include-conten\\" + ___HTML_LOADER_REPLACEMENT_2___ + \\"\\\\ n</include >\\\\n\\";
17941794// Exports
17951795module.exports = code;"
17961796`;
17971797
1798- exports[`'attributes' option should handle the " include" type of tags: result 1`] = `
1798+ exports[`'attributes' option should handle the " include" tags: result 1`] = `
17991799" <div>
18001800 <article>
18011801 BeforeHeaderText<header>
18021802 <h1>How to be a wizard</h1>
1803- </header>
1804- AfterHeaderText
1803+ </header>AfterHeaderText
18051804 <ol>
18061805 <li>Grow a long, majestic beard.</li>
18071806 <li>Wear a tall, pointed hat.</li>
18081807 <li>Have I mentioned the beard?</li>
18091808 </ol>
18101809 BeforeFooterText<footer>
18111810 <p>© 2018 Gandalf</p>
1812- </footer>
1813- AfterFooterText
1814- <!--<div><include src=\\" ./include-content.html\\"></include></div>-->
1815- TextBeforeOpenDiv<div>TextAfterOpenDiv<span>Text</span>
1816- TextBeforeCloseDiv</div>TextAfterCloseDiv
1811+ </footer>AfterFooterText
1812+ TextBeforeOpenDiv<div>TextAfterOpenDiv<span>Text</span>TextBeforeCloseDiv</div>TextAfterCloseDiv
18171813 </article>
18181814</div>
1815+
1816+ <!-- Future improvements -->
1817+ BEFORE
1818+ <span>Text</span>
1819+ AFTER
1820+
1821+ <div>TEXT</div>
1822+ <div>
1823+ <span>Text</span>
1824+ </div>
1825+ <div>TEXT</div>
1826+
1827+ <!-- WRONG -->
1828+ <div><include src=\\" ./include-conten<span>Text</span>
1829+ </include>
18191830"
18201831`;
18211832
1822- exports[`'attributes' option should handle the " include" type of tags: warnings 1`] = `Array []`;
1833+ exports[`'attributes' option should handle the " include" tags: warnings 1`] = `Array []`;
18231834
18241835exports[`'attributes' option should not handle attributes with a " boolean" notation equals " false" : errors 1`] = `Array []`;
18251836
0 commit comments