|
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 |
| 5 | +export default \`<!DOCTYPE html> |
| 6 | +<html lang=\\"en\\"> |
| 7 | +<head> |
| 8 | + <meta charset=\\"utf-8\\"> |
| 9 | + <title>HTML Loader</title> |
| 10 | +</head> |
| 11 | +<body> |
| 12 | + <!-- Ignore --> |
| 13 | + <import src=\\"//file.html\\"></import> |
| 14 | + <import src=\\"//cdn.com/file.html\\"></import> |
| 15 | + <import src=\\"http://cdn.com/file.html\\"></import> |
| 16 | + <import src=\\"https://cdn.com/file.html\\"></import> |
| 17 | + <!-- Transform --> |
| 18 | + <import src=\\"./1.html\\"></import> |
| 19 | + <import src=\\"/2.html\\"></import> |
| 20 | +
|
| 21 | + <include src=\\"./1.html\\"></include> |
| 22 | + <include src=\\"/2.html\\"></include> |
| 23 | +</body> |
| 24 | +</html> |
| 25 | +\`" |
| 26 | +`; |
| 27 | +
|
| 28 | +exports[`Options import {Boolean} - true - default 1`] = ` |
4 | 29 | "// HTML Imports
|
5 | 30 | import HTML__IMPORT__0 from './1.html';
|
6 | 31 | import HTML__IMPORT__1 from '/2.html';
|
@@ -28,5 +53,92 @@ export default \`<!DOCTYPE html>
|
28 | 53 | \${HTML__IMPORT__3}
|
29 | 54 | </body>
|
30 | 55 | </html>
|
| 56 | +\`" |
| 57 | +`; |
| 58 | +
|
| 59 | +exports[`Options import {Function} 1`] = ` |
| 60 | +"// HTML Imports |
| 61 | +import HTML__IMPORT__0 from './1.html'; |
| 62 | +import HTML__IMPORT__1 from '/2.html'; |
| 63 | +import HTML__IMPORT__2 from './1.html'; |
| 64 | +import HTML__IMPORT__3 from '/2.html'; |
| 65 | +
|
| 66 | +// HTML |
| 67 | +export default \`<!-- Ignore --> |
| 68 | +
|
| 69 | +
|
| 70 | +
|
| 71 | +
|
| 72 | +<!-- Transform --> |
| 73 | +\${HTML__IMPORT__0} |
| 74 | +\${HTML__IMPORT__1} |
| 75 | +<!-- Filter (Ignore) --> |
| 76 | +
|
| 77 | +
|
| 78 | +<!-- Transform --> |
| 79 | +\${HTML__IMPORT__2} |
| 80 | +\${HTML__IMPORT__3} |
| 81 | +<!-- Filter (Ignore) --> |
| 82 | +
|
| 83 | +
|
| 84 | +
|
| 85 | +\`" |
| 86 | +`; |
| 87 | +
|
| 88 | +exports[`Options import {RegExp} 1`] = ` |
| 89 | +"// HTML Imports |
| 90 | +import HTML__IMPORT__0 from './1.html'; |
| 91 | +import HTML__IMPORT__1 from '/2.html'; |
| 92 | +import HTML__IMPORT__2 from './1.html'; |
| 93 | +import HTML__IMPORT__3 from '/2.html'; |
| 94 | +
|
| 95 | +// HTML |
| 96 | +export default \`<!-- Ignore --> |
| 97 | +
|
| 98 | +
|
| 99 | +
|
| 100 | +
|
| 101 | +<!-- Transform --> |
| 102 | +\${HTML__IMPORT__0} |
| 103 | +\${HTML__IMPORT__1} |
| 104 | +<!-- Filter (Ignore) --> |
| 105 | +
|
| 106 | +
|
| 107 | +<!-- Transform --> |
| 108 | +\${HTML__IMPORT__2} |
| 109 | +\${HTML__IMPORT__3} |
| 110 | +<!-- Filter (Ignore) --> |
| 111 | +
|
| 112 | +
|
| 113 | +
|
| 114 | +\`" |
| 115 | +`; |
| 116 | +
|
| 117 | +exports[`Options import {String} 1`] = ` |
| 118 | +"// HTML Imports |
| 119 | +import HTML__IMPORT__0 from './1.html'; |
| 120 | +import HTML__IMPORT__1 from '/2.html'; |
| 121 | +import HTML__IMPORT__2 from './1.html'; |
| 122 | +import HTML__IMPORT__3 from '/2.html'; |
| 123 | +
|
| 124 | +// HTML |
| 125 | +export default \`<!-- Ignore --> |
| 126 | +
|
| 127 | +
|
| 128 | +
|
| 129 | +
|
| 130 | +<!-- Transform --> |
| 131 | +\${HTML__IMPORT__0} |
| 132 | +\${HTML__IMPORT__1} |
| 133 | +<!-- Filter (Ignore) --> |
| 134 | +
|
| 135 | +
|
| 136 | +<!-- Transform --> |
| 137 | +\${HTML__IMPORT__2} |
| 138 | +\${HTML__IMPORT__3} |
| 139 | +<!-- Filter (Ignore) --> |
| 140 | +
|
| 141 | +
|
| 142 | +
|
31 | 143 | \`"
|
32 | 144 | `;
|
0 commit comments