|
| 1 | +// Jest Snapshot v1, https://goo.gl/fbAQLP |
| 2 | + |
| 3 | +exports[`static.publicPath option Content type should handle request to example.txt: console messages 1`] = `Array []`; |
| 4 | + |
| 5 | +exports[`static.publicPath option Content type should handle request to example.txt: page errors 1`] = `Array []`; |
| 6 | + |
| 7 | +exports[`static.publicPath option Content type should handle request to example.txt: response header content-type 1`] = `"text/plain; charset=UTF-8"`; |
| 8 | + |
| 9 | +exports[`static.publicPath option Content type should handle request to example.txt: response status 1`] = `200`; |
| 10 | + |
| 11 | +exports[`static.publicPath option defaults to CWD should handle request to page: console messages 1`] = `Array []`; |
| 12 | + |
| 13 | +exports[`static.publicPath option defaults to CWD should handle request to page: page errors 1`] = `Array []`; |
| 14 | + |
| 15 | +exports[`static.publicPath option defaults to CWD should handle request to page: response status 1`] = `200`; |
| 16 | + |
| 17 | +exports[`static.publicPath option defaults to CWD should handle request to page: response text 1`] = ` |
| 18 | +"Heyo. |
| 19 | +" |
| 20 | +`; |
| 21 | + |
| 22 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the /foo route of second path: console messages 1`] = `Array []`; |
| 23 | + |
| 24 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the /foo route of second path: page errors 1`] = `Array []`; |
| 25 | + |
| 26 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the /foo route of second path: response status 1`] = `200`; |
| 27 | + |
| 28 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the /foo route of second path: response text 1`] = ` |
| 29 | +"Foo! |
| 30 | +" |
| 31 | +`; |
| 32 | + |
| 33 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the index of first path: console messages 1`] = `Array []`; |
| 34 | + |
| 35 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the index of first path: page errors 1`] = `Array []`; |
| 36 | + |
| 37 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the index of first path: response status 1`] = `200`; |
| 38 | + |
| 39 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the index of first path: response text 1`] = ` |
| 40 | +"Heyo. |
| 41 | +" |
| 42 | +`; |
| 43 | + |
| 44 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the other file of first path: console messages 1`] = `Array []`; |
| 45 | + |
| 46 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the other file of first path: page errors 1`] = `Array []`; |
| 47 | + |
| 48 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the other file of first path: response status 1`] = `200`; |
| 49 | + |
| 50 | +exports[`static.publicPath option multiple static.publicPath entries should handle request to the other file of first path: response text 1`] = ` |
| 51 | +"Other html |
| 52 | +" |
| 53 | +`; |
| 54 | + |
| 55 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of first path: console messages 1`] = `Array []`; |
| 56 | + |
| 57 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of first path: page errors 1`] = `Array []`; |
| 58 | + |
| 59 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of first path: response status 1`] = `200`; |
| 60 | + |
| 61 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of first path: response text 1`] = ` |
| 62 | +"Foo! |
| 63 | +" |
| 64 | +`; |
| 65 | + |
| 66 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of second path: console messages 1`] = `Array []`; |
| 67 | + |
| 68 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of second path: page errors 1`] = `Array []`; |
| 69 | + |
| 70 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of second path: response status 1`] = `200`; |
| 71 | + |
| 72 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the /foo route of second path: response text 1`] = ` |
| 73 | +"Foo! |
| 74 | +" |
| 75 | +`; |
| 76 | + |
| 77 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the index of first path: console messages 1`] = `Array []`; |
| 78 | + |
| 79 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the index of first path: page errors 1`] = `Array []`; |
| 80 | + |
| 81 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the index of first path: response status 1`] = `200`; |
| 82 | + |
| 83 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the index of first path: response text 1`] = ` |
| 84 | +"Heyo. |
| 85 | +" |
| 86 | +`; |
| 87 | + |
| 88 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the other file of first path: console messages 1`] = `Array []`; |
| 89 | + |
| 90 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the other file of first path: page errors 1`] = `Array []`; |
| 91 | + |
| 92 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the other file of first path: response status 1`] = `200`; |
| 93 | + |
| 94 | +exports[`static.publicPath option multiple static.publicPath entries with publicPath array should handle request to the other file of first path: response text 1`] = ` |
| 95 | +"Other html |
| 96 | +" |
| 97 | +`; |
| 98 | + |
| 99 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle GET request: console messages 1`] = `Array []`; |
| 100 | + |
| 101 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle GET request: page errors 1`] = `Array []`; |
| 102 | + |
| 103 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle GET request: response status 1`] = `200`; |
| 104 | + |
| 105 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle HEAD request: console messages 1`] = `Array []`; |
| 106 | + |
| 107 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle HEAD request: page errors 1`] = `Array []`; |
| 108 | + |
| 109 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should handle HEAD request: response status 1`] = `200`; |
| 110 | + |
| 111 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle DELETE request: console messages 1`] = ` |
| 112 | +Array [ |
| 113 | + "Failed to load resource: the server responded with a status of 404 (Not Found)", |
| 114 | +] |
| 115 | +`; |
| 116 | + |
| 117 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle DELETE request: page errors 1`] = `Array []`; |
| 118 | + |
| 119 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle DELETE request: response status 1`] = `404`; |
| 120 | + |
| 121 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PATCH request: console messages 1`] = ` |
| 122 | +Array [ |
| 123 | + "Failed to load resource: the server responded with a status of 404 (Not Found)", |
| 124 | +] |
| 125 | +`; |
| 126 | + |
| 127 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PATCH request: page errors 1`] = `Array []`; |
| 128 | + |
| 129 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PATCH request: response status 1`] = `404`; |
| 130 | + |
| 131 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle POST request: console messages 1`] = ` |
| 132 | +Array [ |
| 133 | + "Failed to load resource: the server responded with a status of 404 (Not Found)", |
| 134 | +] |
| 135 | +`; |
| 136 | + |
| 137 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle POST request: page errors 1`] = `Array []`; |
| 138 | + |
| 139 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle POST request: response status 1`] = `404`; |
| 140 | + |
| 141 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PUT request: console messages 1`] = ` |
| 142 | +Array [ |
| 143 | + "Failed to load resource: the server responded with a status of 404 (Not Found)", |
| 144 | +] |
| 145 | +`; |
| 146 | + |
| 147 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PUT request: page errors 1`] = `Array []`; |
| 148 | + |
| 149 | +exports[`static.publicPath option should ignore methods other than GET and HEAD should not handle PUT request: response status 1`] = `404`; |
| 150 | + |
| 151 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should list the files inside the assets folder (200): console messages 1`] = `Array []`; |
| 152 | + |
| 153 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should list the files inside the assets folder (200): page errors 1`] = `Array []`; |
| 154 | + |
| 155 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should list the files inside the assets folder (200): response status 1`] = `200`; |
| 156 | + |
| 157 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should show Heyo. because bar has index.html inside it (200): console messages 1`] = `Array []`; |
| 158 | + |
| 159 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should show Heyo. because bar has index.html inside it (200): page errors 1`] = `Array []`; |
| 160 | + |
| 161 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should show Heyo. because bar has index.html inside it (200): response status 1`] = `200`; |
| 162 | + |
| 163 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex default (true) should show Heyo. because bar has index.html inside it (200): response text 1`] = ` |
| 164 | +"Heyo |
| 165 | +" |
| 166 | +`; |
| 167 | + |
| 168 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false should show Heyo. because bar has index.html inside it (200): console messages 1`] = `Array []`; |
| 169 | + |
| 170 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false should show Heyo. because bar has index.html inside it (200): page errors 1`] = `Array []`; |
| 171 | + |
| 172 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false should show Heyo. because bar has index.html inside it (200): response status 1`] = `200`; |
| 173 | + |
| 174 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false should show Heyo. because bar has index.html inside it (200): response text 1`] = ` |
| 175 | +"Heyo |
| 176 | +" |
| 177 | +`; |
| 178 | + |
| 179 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false shouldn't list the files inside the assets folder (404): console messages 1`] = ` |
| 180 | +Array [ |
| 181 | + "Failed to load resource: the server responded with a status of 404 (Not Found)", |
| 182 | +] |
| 183 | +`; |
| 184 | + |
| 185 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false shouldn't list the files inside the assets folder (404): page errors 1`] = `Array []`; |
| 186 | + |
| 187 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false shouldn't list the files inside the assets folder (404): response status 1`] = `404`; |
| 188 | + |
| 189 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: false shouldn't list the files inside the assets folder (404): response text 1`] = ` |
| 190 | +"<!DOCTYPE html> |
| 191 | +<html lang=\\"en\\"> |
| 192 | +<head> |
| 193 | +<meta charset=\\"utf-8\\"> |
| 194 | +<title>Error</title> |
| 195 | +</head> |
| 196 | +<body> |
| 197 | +<pre>Cannot GET /serve-content-at-this-url/assets/</pre> |
| 198 | +</body> |
| 199 | +</html> |
| 200 | +" |
| 201 | +`; |
| 202 | + |
| 203 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should list the files inside the assets folder (200): console messages 1`] = `Array []`; |
| 204 | + |
| 205 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should list the files inside the assets folder (200): page errors 1`] = `Array []`; |
| 206 | + |
| 207 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should list the files inside the assets folder (200): response status 1`] = `200`; |
| 208 | + |
| 209 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should show Heyo. because bar has index.html inside it (200): console messages 1`] = `Array []`; |
| 210 | + |
| 211 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should show Heyo. because bar has index.html inside it (200): page errors 1`] = `Array []`; |
| 212 | + |
| 213 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should show Heyo. because bar has index.html inside it (200): response status 1`] = `200`; |
| 214 | + |
| 215 | +exports[`static.publicPath option test listing files in folders without index.html using the option static.serveIndex: true should show Heyo. because bar has index.html inside it (200): response text 1`] = ` |
| 216 | +"Heyo |
| 217 | +" |
| 218 | +`; |
| 219 | + |
| 220 | +exports[`static.publicPath option to directory should handle request to index: console messages 1`] = `Array []`; |
| 221 | + |
| 222 | +exports[`static.publicPath option to directory should handle request to index: page errors 1`] = `Array []`; |
| 223 | + |
| 224 | +exports[`static.publicPath option to directory should handle request to index: response status 1`] = `200`; |
| 225 | + |
| 226 | +exports[`static.publicPath option to directory should handle request to index: response text 1`] = ` |
| 227 | +"Heyo. |
| 228 | +" |
| 229 | +`; |
| 230 | + |
| 231 | +exports[`static.publicPath option to directory should handle request to other file: console messages 1`] = `Array []`; |
| 232 | + |
| 233 | +exports[`static.publicPath option to directory should handle request to other file: page errors 1`] = `Array []`; |
| 234 | + |
| 235 | +exports[`static.publicPath option to directory should handle request to other file: response status 1`] = `200`; |
| 236 | + |
| 237 | +exports[`static.publicPath option to directory should handle request to other file: response text 1`] = ` |
| 238 | +"Other html |
| 239 | +" |
| 240 | +`; |
| 241 | + |
| 242 | +exports[`static.publicPath option to multiple directories should handle request to first directory: console messages 1`] = `Array []`; |
| 243 | + |
| 244 | +exports[`static.publicPath option to multiple directories should handle request to first directory: page errors 1`] = `Array []`; |
| 245 | + |
| 246 | +exports[`static.publicPath option to multiple directories should handle request to first directory: response status 1`] = `200`; |
| 247 | + |
| 248 | +exports[`static.publicPath option to multiple directories should handle request to first directory: response text 1`] = ` |
| 249 | +"Heyo. |
| 250 | +" |
| 251 | +`; |
| 252 | + |
| 253 | +exports[`static.publicPath option to multiple directories should handle request to second directory: console messages 1`] = `Array []`; |
| 254 | + |
| 255 | +exports[`static.publicPath option to multiple directories should handle request to second directory: page errors 1`] = `Array []`; |
| 256 | + |
| 257 | +exports[`static.publicPath option to multiple directories should handle request to second directory: response status 1`] = `200`; |
| 258 | + |
| 259 | +exports[`static.publicPath option to multiple directories should handle request to second directory: response text 1`] = ` |
| 260 | +"Foo! |
| 261 | +" |
| 262 | +`; |
0 commit comments