test: verify read-only workspace secret flow
This commit is contained in:
@@ -238,7 +238,7 @@ test("constructs diagnostic URLs only when the resolved URL remains on the servi
|
||||
|
||||
expect(resolveDiagnosticUrl).toBeTypeOf("function");
|
||||
expect((resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)("https://service.example/base", "/rpc/ping"))
|
||||
.toMatchObject({ href: "https://service.example/rpc/ping" });
|
||||
.toMatchObject({ href: "https://service.example/base/rpc/ping" });
|
||||
expect(() => (resolveDiagnosticUrl as (baseUrl: string, path: string) => URL)(
|
||||
"https://service.example/base", "//diagnostic.invalid/rpc",
|
||||
)).toThrow(/origin/i);
|
||||
|
||||
Reference in New Issue
Block a user