History

Preserve URL org scope in cloud auth flows

Rhys Sullivan committed 4 months ago

Commit 417a2551 parent c575d2f14 files · +391 −68Browse files

Showing the changes to apps/cloud/src/api.request-scope.node.test.ts (1 of 14 files). Show all

Unified · Split

apps/cloud/src/api.request-scope.node.test.ts+2−2
@@ -188,8 +188,8 @@ describe("makeApiLive (prod handler factory) request scoping", () => { · 187 unmodified lines
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. `/integrations` is a189 // only that the layer was built once per request. `/integrations` is a
190 // v2 protected route (the old `/scope` group was removed).190 // v2 protected route (the old `/scope` group was removed).
191 await handler(new Request("http://test.local/integrations"));191 await handler(new Request("http://test.local/integrations"), Context.empty());
192 await handler(new Request("http://test.local/integrations"));192 await handler(new Request("http://test.local/integrations"), Context.empty());
193 193
194 expect(counts.acquires).toBe(2);194 expect(counts.acquires).toBe(2);
195 expect(counts.releases).toBe(2);195 expect(counts.releases).toBe(2);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t