()
| 253 | }; |
| 254 | |
| 255 | function routerFetch(): { fetch: FetchLike; urls: string[] } { |
| 256 | return recordingFetch((url) => { |
| 257 | if (url.endsWith('/health')) { |
| 258 | return response(200, { status: 'ok' }); |
| 259 | } |
| 260 | if (url.includes('/props?model=')) { |
| 261 | return response(200, SCOPED_PROPS); |
| 262 | } |
| 263 | if (url.endsWith('/props')) { |
| 264 | return response(200, ROUTER_PROPS); |
| 265 | } |
| 266 | return response(200, ROUTER_MODELS); |
| 267 | }); |
| 268 | } |
| 269 | |
| 270 | describe('die Betriebsart', () => { |
| 271 | it('ist genau dann Router, wenn /props es sagt', () => { |
no test coverage detected