|
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'; |
@@ -32,5 +57,92 @@ export default \`<!DOCTYPE html> |
32 | 57 | \${HTML__IMPORT__3} |
33 | 58 | </body> |
34 | 59 | </html> |
| 60 | +\`" |
| 61 | +`; |
| 62 | +
|
| 63 | +exports[`Options import {Function} 1`] = ` |
| 64 | +"// HTML Imports |
| 65 | +import HTML__IMPORT__0 from './1.html'; |
| 66 | +import HTML__IMPORT__1 from '/2.html'; |
| 67 | +import HTML__IMPORT__2 from './1.html'; |
| 68 | +import HTML__IMPORT__3 from '/2.html'; |
| 69 | +
|
| 70 | +// HTML |
| 71 | +export default \`<!-- Ignore --> |
| 72 | +
|
| 73 | +
|
| 74 | +
|
| 75 | +
|
| 76 | +<!-- Transform --> |
| 77 | +\${HTML__IMPORT__0} |
| 78 | +\${HTML__IMPORT__1} |
| 79 | +<!-- Filter (Ignore) --> |
| 80 | +
|
| 81 | +
|
| 82 | +<!-- Transform --> |
| 83 | +\${HTML__IMPORT__2} |
| 84 | +\${HTML__IMPORT__3} |
| 85 | +<!-- Filter (Ignore) --> |
| 86 | +
|
| 87 | +
|
| 88 | +
|
| 89 | +\`" |
| 90 | +`; |
| 91 | +
|
| 92 | +exports[`Options import {RegExp} 1`] = ` |
| 93 | +"// HTML Imports |
| 94 | +import HTML__IMPORT__0 from './1.html'; |
| 95 | +import HTML__IMPORT__1 from '/2.html'; |
| 96 | +import HTML__IMPORT__2 from './1.html'; |
| 97 | +import HTML__IMPORT__3 from '/2.html'; |
| 98 | +
|
| 99 | +// HTML |
| 100 | +export default \`<!-- Ignore --> |
| 101 | +
|
| 102 | +
|
| 103 | +
|
| 104 | +
|
| 105 | +<!-- Transform --> |
| 106 | +\${HTML__IMPORT__0} |
| 107 | +\${HTML__IMPORT__1} |
| 108 | +<!-- Filter (Ignore) --> |
| 109 | +
|
| 110 | +
|
| 111 | +<!-- Transform --> |
| 112 | +\${HTML__IMPORT__2} |
| 113 | +\${HTML__IMPORT__3} |
| 114 | +<!-- Filter (Ignore) --> |
| 115 | +
|
| 116 | +
|
| 117 | +
|
| 118 | +\`" |
| 119 | +`; |
| 120 | +
|
| 121 | +exports[`Options import {String} 1`] = ` |
| 122 | +"// HTML Imports |
| 123 | +import HTML__IMPORT__0 from './1.html'; |
| 124 | +import HTML__IMPORT__1 from '/2.html'; |
| 125 | +import HTML__IMPORT__2 from './1.html'; |
| 126 | +import HTML__IMPORT__3 from '/2.html'; |
| 127 | +
|
| 128 | +// HTML |
| 129 | +export default \`<!-- Ignore --> |
| 130 | +
|
| 131 | +
|
| 132 | +
|
| 133 | +
|
| 134 | +<!-- Transform --> |
| 135 | +\${HTML__IMPORT__0} |
| 136 | +\${HTML__IMPORT__1} |
| 137 | +<!-- Filter (Ignore) --> |
| 138 | +
|
| 139 | +
|
| 140 | +<!-- Transform --> |
| 141 | +\${HTML__IMPORT__2} |
| 142 | +\${HTML__IMPORT__3} |
| 143 | +<!-- Filter (Ignore) --> |
| 144 | +
|
| 145 | +
|
| 146 | +
|
35 | 147 | \`" |
36 | 148 | `; |
0 commit comments