Showing the changes to apps/cloud/src/api.request-scope.node.test.ts (1 of 497 files). Show all
Unified · Split
| @@ -186,9 +186,10 @@ describe("makeApiLive (prod handler factory) request scoping", () => { · 185 unmodified lines | |||
| 186 | // Hit a protected route. ExecutionStackMiddleware short-circuits with | 186 | // Hit a protected route. ExecutionStackMiddleware short-circuits with |
| 187 | // 403 (no session cookie) but not before `requestScopedMiddleware` | 187 | // 403 (no session cookie) but not before `requestScopedMiddleware` |
| 188 | // has built the per-request layer. We don't care about the response — | 188 | // has built the per-request layer. We don't care about the response — |
| 189 | // only that the layer was built once per request. | 189 | // only that the layer was built once per request. `/integrations` is a |
| 190 | await handler(new Request("http://test.local/scope")); | 190 | // v2 protected route (the old `/scope` group was removed). |
| 191 | await handler(new Request("http://test.local/scope")); | 191 | await handler(new Request("http://test.local/integrations")); |
| 192 | await handler(new Request("http://test.local/integrations")); | ||
| 192 | 193 | ||
| 193 | expect(counts.acquires).toBe(2); | 194 | expect(counts.acquires).toBe(2); |
| 194 | expect(counts.releases).toBe(2); | 195 | expect(counts.releases).toBe(2); |