-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
static-directory.test.js.snap.webpack5
149 lines (103 loc) · 8.07 KB
/
static-directory.test.js.snap.webpack5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`static.directory option defaults to PWD should handle request to /index.html: console messages 1`] = `Array []`;
exports[`static.directory option defaults to PWD should handle request to /index.html: page errors 1`] = `Array []`;
exports[`static.directory option defaults to PWD should handle request to /index.html: response status 1`] = `200`;
exports[`static.directory option defaults to PWD should handle request to /index.html: response text 1`] = `
"Heyo.
"
`;
exports[`static.directory option disabled should not handle request to /other.html (404): console messages 1`] = `
Array [
"Failed to load resource: the server responded with a status of 404 (Not Found)",
]
`;
exports[`static.directory option disabled should not handle request to /other.html (404): page errors 1`] = `Array []`;
exports[`static.directory option disabled should not handle request to /other.html (404): response status 1`] = `404`;
exports[`static.directory option disabled should not handle request to /other.html (404): response text 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\">
<head>
<meta charset=\\"utf-8\\">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /index.html</pre>
</body>
</html>
"
`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should list the files inside the assets folder (200): console messages 1`] = `Array []`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should list the files inside the assets folder (200): page errors 1`] = `Array []`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should list the files inside the assets folder (200): response status 1`] = `200`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should show Heyo. because bar has index.html inside it (200): console messages 1`] = `Array []`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should show Heyo. because bar has index.html inside it (200): page errors 1`] = `Array []`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should show Heyo. because bar has index.html inside it (200): response status 1`] = `200`;
exports[`static.directory option test listing files in folders without index.html using the default static.serveIndex option (true) should show Heyo. because bar has index.html inside it (200): response text 1`] = `
"Heyo
"
`;
exports[`static.directory option test listing files in folders without index.html using the option static.serveIndex: false should not list the files inside the assets folder (404): console messages 1`] = `
Array [
"Failed to load resource: the server responded with a status of 404 (Not Found)",
]
`;
exports[`static.directory option test listing files in folders without index.html using the option static.serveIndex: false should not list the files inside the assets folder (404): page errors 1`] = `Array []`;
exports[`static.directory option test listing files in folders without index.html using the option static.serveIndex: false should not list the files inside the assets folder (404): response status 1`] = `404`;
exports[`static.directory option test listing files in folders without index.html using the option static.serveIndex: false should not list the files inside the assets folder (404): response text 1`] = `
"<!DOCTYPE html>
<html lang=\\"en\\">
<head>
<meta charset=\\"utf-8\\">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /assets/</pre>
</body>
</html>
"
`;
exports[`static.directory 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 []`;
exports[`static.directory 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 []`;
exports[`static.directory 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`;
exports[`static.directory 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`] = `
"Heyo
"
`;
exports[`static.directory 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 []`;
exports[`static.directory 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 []`;
exports[`static.directory 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`;
exports[`static.directory 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 []`;
exports[`static.directory 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 []`;
exports[`static.directory 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`;
exports[`static.directory 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`] = `
"Heyo
"
`;
exports[`static.directory option to directory should handle request to index route: console messages 1`] = `Array []`;
exports[`static.directory option to directory should handle request to index route: page errors 1`] = `Array []`;
exports[`static.directory option to directory should handle request to index route: response status 1`] = `200`;
exports[`static.directory option to directory should handle request to index route: response text 1`] = `
"Heyo.
"
`;
exports[`static.directory option to directory should handle request to other file: console messages 1`] = `Array []`;
exports[`static.directory option to directory should handle request to other file: page errors 1`] = `Array []`;
exports[`static.directory option to directory should handle request to other file: response status 1`] = `200`;
exports[`static.directory option to directory should handle request to other file: response text 1`] = `
"Other html
"
`;
exports[`static.directory option to multiple directories should handle request first directory: console messages 1`] = `Array []`;
exports[`static.directory option to multiple directories should handle request first directory: page errors 1`] = `Array []`;
exports[`static.directory option to multiple directories should handle request first directory: response status 1`] = `200`;
exports[`static.directory option to multiple directories should handle request first directory: response text 1`] = `
"Heyo.
"
`;
exports[`static.directory option to multiple directories should handle request to second directory: console messages 1`] = `Array []`;
exports[`static.directory option to multiple directories should handle request to second directory: page errors 1`] = `Array []`;
exports[`static.directory option to multiple directories should handle request to second directory: response status 1`] = `200`;
exports[`static.directory option to multiple directories should handle request to second directory: response text 1`] = `
"Foo!
"
`;