MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / slugOf

Function slugOf

e2e/cloud/org-multitab-cookie.test.ts:34–34  ·  view source on GitHub ↗
(page: typeof tab1)

Source from the content-addressed store, hash-verified

32
33 yield* browser.session(identity, async ({ page: tab1, step }) => {
34 const slugOf = (page: typeof tab1) => new URL(page.url()).pathname.replace(/^\/|\/.*$/g, "");
35
36 // The org slug a page's REAL app requests carry — read straight off the
37 // outgoing `x-executor-organization` header, the actual request scope.

Callers 1

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected