|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`Options url {Boolean} 1`] = ` |
| 3 | +exports[`Options url {Boolean} - false 1`] = ` |
| 4 | +"// HTML Imports |
| 5 | +
|
| 6 | +
|
| 7 | +// HTML Exports |
| 8 | +
|
| 9 | +
|
| 10 | +// HTML |
| 11 | +export default \`<!DOCTYPE html> |
| 12 | +<html lang=\\"en\\"> |
| 13 | +<head> |
| 14 | + <meta charset=\\"utf-8\\"> |
| 15 | + <title>HTML Loader</title> |
| 16 | + <!-- Ignore --> |
| 17 | + <link href=\\"//file.css\\"> |
| 18 | + <link href=\\"//cdn.com/file.css\\"> |
| 19 | + <link href=\\"http://cdn.com/file.css\\"> |
| 20 | + <link href=\\"https://cdn.com/file.css\\"> |
| 21 | + <!-- Transform --> |
| 22 | + <link href=\\"./file.css\\"> |
| 23 | + <link href=\\"/file.css\\"> |
| 24 | +</head> |
| 25 | +<body> |
| 26 | + <!-- Ignore --> |
| 27 | + <img src=\\"//file.png\\"> |
| 28 | + <img src=\\"//cdn.com/file.png\\"> |
| 29 | + <img src=\\"http://cdn.com/file.png\\"> |
| 30 | + <img src=\\"https://cdn.com/file.png\\"> |
| 31 | + <!-- Transform --> |
| 32 | + <img src=\\"./file.png\\"> |
| 33 | + <img src=\\"/file.png\\"> |
| 34 | +
|
| 35 | + <picture> |
| 36 | + <source srcset=\\"./file.svg\\" type=\\"image/svg+xml\\"> |
| 37 | + <img src=\\"./file.png\\" alt=\\"Image\\"> |
| 38 | + </picture> |
| 39 | +
|
| 40 | + <video width=\\"320\\" height=\\"240\\" controls=\\"\\"> |
| 41 | + <source src=\\"./file.mp4\\" type=\\"video/mp4\\"> |
| 42 | + <source src=\\"./file.ogg\\" type=\\"video/ogg\\"> |
| 43 | + Your browser does not support the <code>video<code> element. |
| 44 | + </code></code></video> |
| 45 | +
|
| 46 | + <audio src=\\"./file.mp3\\" autoplay=\\"\\"></audio> |
| 47 | +
|
| 48 | + <audio controls=\\"controls\\"> |
| 49 | + Your browser does not support the <code>audio</code> element. |
| 50 | + <source src=\\"./file.wav\\" type=\\"audio/wav\\"> |
| 51 | + </audio> |
| 52 | +
|
| 53 | + <audio src=\\"./file.ogg\\"> |
| 54 | + <track kind=\\"captions\\" src=\\"./file.en.vtt\\" srclang=\\"en\\" label=\\"English\\"> |
| 55 | + <track kind=\\"captions\\" src=\\"./file.sv.vtt\\" srclang=\\"sv\\" label=\\"Svenska\\"> |
| 56 | + </audio> |
| 57 | +</body> |
| 58 | +</html> |
| 59 | +\`" |
| 60 | +`; |
| 61 | +
|
| 62 | +exports[`Options url {Boolean} - true - (default) 1`] = ` |
4 | 63 | "// HTML Imports
|
5 | 64 | import HTML__URL__0 from './file.css';
|
6 | 65 | import HTML__URL__1 from '/file.css';
|
@@ -71,3 +130,49 @@ export default \`<!DOCTYPE html>
|
71 | 130 | </html>
|
72 | 131 | \`"
|
73 | 132 | `;
|
| 133 | +
|
| 134 | +exports[`Options url {Function} 1`] = ` |
| 135 | +"// HTML Imports |
| 136 | +import HTML__URL__0 from './file.png'; |
| 137 | +import HTML__URL__1 from '/file.png'; |
| 138 | +
|
| 139 | +
|
| 140 | +// HTML Exports |
| 141 | +
|
| 142 | +
|
| 143 | +// HTML |
| 144 | +export default \`<!-- Ignore --> |
| 145 | +<img src=\\"//file.png\\"> |
| 146 | +<img src=\\"//cdn.com/file.png\\"> |
| 147 | +<img src=\\"http://cdn.com/file.png\\"> |
| 148 | +<img src=\\"https://cdn.com/file.png\\"> |
| 149 | +<!-- Transform --> |
| 150 | +<img src=\\"\${HTML__URL__0}\\"> |
| 151 | +<img src=\\"\${HTML__URL__1}\\"> |
| 152 | +<!-- Filter --> |
| 153 | +<img src=\\"./filter/file.png\\"> |
| 154 | +<img src=\\"/filter/file.png\\">\`" |
| 155 | +`; |
| 156 | +
|
| 157 | +exports[`Options url {RegExp} 1`] = ` |
| 158 | +"// HTML Imports |
| 159 | +import HTML__URL__0 from './file.png'; |
| 160 | +import HTML__URL__1 from '/file.png'; |
| 161 | +
|
| 162 | +
|
| 163 | +// HTML Exports |
| 164 | +
|
| 165 | +
|
| 166 | +// HTML |
| 167 | +export default \`<!-- Ignore --> |
| 168 | +<img src=\\"//file.png\\"> |
| 169 | +<img src=\\"//cdn.com/file.png\\"> |
| 170 | +<img src=\\"http://cdn.com/file.png\\"> |
| 171 | +<img src=\\"https://cdn.com/file.png\\"> |
| 172 | +<!-- Transform --> |
| 173 | +<img src=\\"\${HTML__URL__0}\\"> |
| 174 | +<img src=\\"\${HTML__URL__1}\\"> |
| 175 | +<!-- Filter --> |
| 176 | +<img src=\\"./filter/file.png\\"> |
| 177 | +<img src=\\"/filter/file.png\\">\`" |
| 178 | +`; |
0 commit comments