MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / httpsOnly

Function httpsOnly

web/e2e/task-3415-real-install.spec.ts:186–187  ·  view source on GitHub ↗
(what: string, url: unknown)

Source from the content-addressed store, hash-verified

184 const api = `${frontOrigin}/api/app/v1`;
185 const theApp = app!;
186 const httpsOnly = (what: string, url: unknown) =>
187 expect(String(url), `${what} is a URL pad hands the app`).toMatch(new RegExp(`^${frontOrigin.replace(/\./g, '\\.')}(/|$)`));
188
189 // 0. What pad advertises is https, through the front, and the app
190 // takes its token endpoint from there rather than knowing it.

Callers 1

Calls 1

expectStruct · 0.90

Tested by

no test coverage detected