|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 |
| -exports[`Options import {Boolean} 1`] = ` |
| 3 | +exports[`Options import {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 | +</head> |
| 17 | +<body> |
| 18 | + <!-- Ignore --> |
| 19 | + <import src=\\"//file.html\\"></import> |
| 20 | + <import src=\\"//cdn.com/file.html\\"></import> |
| 21 | + <import src=\\"http://cdn.com/file.html\\"></import> |
| 22 | + <import src=\\"https://cdn.com/file.html\\"></import> |
| 23 | + <!-- Transform --> |
| 24 | + <import src=\\"./1.html\\"></import> |
| 25 | + <import src=\\"/2.html\\"></import> |
| 26 | +
|
| 27 | + <include src=\\"./1.html\\"></include> |
| 28 | + <include src=\\"/2.html\\"></include> |
| 29 | +</body> |
| 30 | +</html> |
| 31 | +\`" |
| 32 | +`; |
| 33 | +
|
| 34 | +exports[`Options import {Boolean} - true - default 1`] = ` |
4 | 35 | "// HTML Imports
|
5 | 36 | import HTML__IMPORT__0 from './1.html';
|
6 | 37 | import HTML__IMPORT__1 from '/2.html';
|
@@ -32,5 +63,71 @@ export default \`<!DOCTYPE html>
|
32 | 63 | \${HTML__IMPORT__3}
|
33 | 64 | </body>
|
34 | 65 | </html>
|
| 66 | +\`" |
| 67 | +`; |
| 68 | +
|
| 69 | +exports[`Options import {Function} 1`] = ` |
| 70 | +"// HTML Imports |
| 71 | +import HTML__IMPORT__0 from './1.html'; |
| 72 | +import HTML__IMPORT__1 from '/2.html'; |
| 73 | +import HTML__IMPORT__2 from './1.html'; |
| 74 | +import HTML__IMPORT__3 from '/2.html'; |
| 75 | +
|
| 76 | +
|
| 77 | +// HTML Exports |
| 78 | +
|
| 79 | +
|
| 80 | +// HTML |
| 81 | +export default \`<!-- Ignore --> |
| 82 | +
|
| 83 | +
|
| 84 | +
|
| 85 | +
|
| 86 | +<!-- Transform --> |
| 87 | +\${HTML__IMPORT__0} |
| 88 | +\${HTML__IMPORT__1} |
| 89 | +<!-- Filter (Ignore) --> |
| 90 | +
|
| 91 | +
|
| 92 | +<!-- Transform --> |
| 93 | +\${HTML__IMPORT__2} |
| 94 | +\${HTML__IMPORT__3} |
| 95 | +<!-- Filter (Ignore) --> |
| 96 | +
|
| 97 | +
|
| 98 | +
|
| 99 | +\`" |
| 100 | +`; |
| 101 | +
|
| 102 | +exports[`Options import {RegExp} 1`] = ` |
| 103 | +"// HTML Imports |
| 104 | +import HTML__IMPORT__0 from './1.html'; |
| 105 | +import HTML__IMPORT__1 from '/2.html'; |
| 106 | +import HTML__IMPORT__2 from './1.html'; |
| 107 | +import HTML__IMPORT__3 from '/2.html'; |
| 108 | +
|
| 109 | +
|
| 110 | +// HTML Exports |
| 111 | +
|
| 112 | +
|
| 113 | +// HTML |
| 114 | +export default \`<!-- Ignore --> |
| 115 | +
|
| 116 | +
|
| 117 | +
|
| 118 | +
|
| 119 | +<!-- Transform --> |
| 120 | +\${HTML__IMPORT__0} |
| 121 | +\${HTML__IMPORT__1} |
| 122 | +<!-- Filter (Ignore) --> |
| 123 | +
|
| 124 | +
|
| 125 | +<!-- Transform --> |
| 126 | +\${HTML__IMPORT__2} |
| 127 | +\${HTML__IMPORT__3} |
| 128 | +<!-- Filter (Ignore) --> |
| 129 | +
|
| 130 | +
|
| 131 | +
|
35 | 132 | \`"
|
36 | 133 | `;
|
0 commit comments