|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`proxy option as an array respects a proxy option of function: console messages 1`] = `Array []`; |
| 4 | + |
| 5 | +exports[`proxy option as an array respects a proxy option of function: page errors 1`] = `Array []`; |
| 6 | + |
| 7 | +exports[`proxy option as an array respects a proxy option of function: response status 1`] = `200`; |
| 8 | + |
| 9 | +exports[`proxy option as an array respects a proxy option of function: response text 1`] = `"from proxy2"`; |
| 10 | + |
| 11 | +exports[`proxy option as an array respects a proxy option: console messages 1`] = `Array []`; |
| 12 | + |
| 13 | +exports[`proxy option as an array respects a proxy option: page errors 1`] = `Array []`; |
| 14 | + |
| 15 | +exports[`proxy option as an array respects a proxy option: response status 1`] = `200`; |
| 16 | + |
| 17 | +exports[`proxy option as an array respects a proxy option: response text 1`] = `"from proxy1"`; |
| 18 | + |
| 19 | +exports[`proxy option as an array should allow req, res, and next: console messages 1`] = `Array []`; |
| 20 | + |
| 21 | +exports[`proxy option as an array should allow req, res, and next: page errors 1`] = `Array []`; |
| 22 | + |
| 23 | +exports[`proxy option as an array should allow req, res, and next: response status 1`] = `200`; |
| 24 | + |
| 25 | +exports[`proxy option as an array should allow req, res, and next: response text 1`] = `"foo+next+function"`; |
| 26 | + |
| 27 | +exports[`proxy option as an array without the \`route\` option respects a proxy option: console messages 1`] = `Array []`; |
| 28 | + |
| 29 | +exports[`proxy option as an array without the \`route\` option respects a proxy option: page errors 1`] = `Array []`; |
| 30 | + |
| 31 | +exports[`proxy option as an array without the \`route\` option respects a proxy option: response status 1`] = `200`; |
| 32 | + |
| 33 | +exports[`proxy option as an array without the \`route\` option respects a proxy option: response text 1`] = `"from proxy1"`; |
| 34 | + |
3 | 35 | exports[`proxy option as an object of paths with properties byPass can rewrite a request path regardless of the target defined a bypass option: console messages 1`] = `Array []`;
|
4 | 36 |
|
5 | 37 | exports[`proxy option as an object of paths with properties byPass can rewrite a request path regardless of the target defined a bypass option: page errors 1`] = `Array []`;
|
@@ -117,3 +149,51 @@ exports[`proxy option as an object of paths with properties target respects a pr
|
117 | 149 | exports[`proxy option as an object of paths with properties target respects a proxy option when a request path is matched: response status 1`] = `200`;
|
118 | 150 |
|
119 | 151 | exports[`proxy option as an object of paths with properties target respects a proxy option when a request path is matched: response text 1`] = `"from proxy1"`;
|
| 152 | + |
| 153 | +exports[`proxy option as an option is an object with \`context\` and \`target\` as string respects a proxy option: console messages 1`] = `Array []`; |
| 154 | + |
| 155 | +exports[`proxy option as an option is an object with \`context\` and \`target\` as string respects a proxy option: page errors 1`] = `Array []`; |
| 156 | + |
| 157 | +exports[`proxy option as an option is an object with \`context\` and \`target\` as string respects a proxy option: response status 1`] = `200`; |
| 158 | + |
| 159 | +exports[`proxy option as an option is an object with \`context\` and \`target\` as string respects a proxy option: response text 1`] = `"from proxy1"`; |
| 160 | + |
| 161 | +exports[`proxy option as an option is an object with the \`context\` option respects a proxy option: console messages 1`] = `Array []`; |
| 162 | + |
| 163 | +exports[`proxy option as an option is an object with the \`context\` option respects a proxy option: page errors 1`] = `Array []`; |
| 164 | + |
| 165 | +exports[`proxy option as an option is an object with the \`context\` option respects a proxy option: response status 1`] = `200`; |
| 166 | + |
| 167 | +exports[`proxy option as an option is an object with the \`context\` option respects a proxy option: response text 1`] = `"from proxy1"`; |
| 168 | + |
| 169 | +exports[`proxy option as an option is an object with the \`path\` option (\`context\` alias) respects a proxy option: console messages 1`] = `Array []`; |
| 170 | + |
| 171 | +exports[`proxy option as an option is an object with the \`path\` option (\`context\` alias) respects a proxy option: page errors 1`] = `Array []`; |
| 172 | + |
| 173 | +exports[`proxy option as an option is an object with the \`path\` option (\`context\` alias) respects a proxy option: response status 1`] = `200`; |
| 174 | + |
| 175 | +exports[`proxy option as an option is an object with the \`path\` option (\`context\` alias) respects a proxy option: response text 1`] = `"from proxy1"`; |
| 176 | + |
| 177 | +exports[`proxy option as an option is an object with the \`router\` option respects a proxy option: console messages 1`] = `Array []`; |
| 178 | + |
| 179 | +exports[`proxy option as an option is an object with the \`router\` option respects a proxy option: page errors 1`] = `Array []`; |
| 180 | + |
| 181 | +exports[`proxy option as an option is an object with the \`router\` option respects a proxy option: response status 1`] = `200`; |
| 182 | + |
| 183 | +exports[`proxy option as an option is an object with the \`router\` option respects a proxy option: response text 1`] = `"from proxy1"`; |
| 184 | + |
| 185 | +exports[`proxy option should sharing a proxy option respects proxy1 option: console messages 1`] = `Array []`; |
| 186 | + |
| 187 | +exports[`proxy option should sharing a proxy option respects proxy1 option: page errors 1`] = `Array []`; |
| 188 | + |
| 189 | +exports[`proxy option should sharing a proxy option respects proxy1 option: response status 1`] = `200`; |
| 190 | + |
| 191 | +exports[`proxy option should sharing a proxy option respects proxy1 option: response text 1`] = `"from proxy"`; |
| 192 | + |
| 193 | +exports[`proxy option should sharing a proxy option respects proxy2 option: console messages 1`] = `Array []`; |
| 194 | + |
| 195 | +exports[`proxy option should sharing a proxy option respects proxy2 option: page errors 1`] = `Array []`; |
| 196 | + |
| 197 | +exports[`proxy option should sharing a proxy option respects proxy2 option: response status 1`] = `200`; |
| 198 | + |
| 199 | +exports[`proxy option should sharing a proxy option respects proxy2 option: response text 1`] = `"from proxy"`; |
0 commit comments