chore: generate
This commit is contained in:
@@ -79,9 +79,12 @@ export class Unauthorized extends Schema.TaggedErrorClass<Unauthorized>()(
|
|||||||
{ httpApiStatus: 401 },
|
{ httpApiStatus: 401 },
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
export class Authorization extends HttpApiMiddleware.Service<Authorization, {
|
export class Authorization extends HttpApiMiddleware.Service<
|
||||||
provides: CurrentUser
|
Authorization,
|
||||||
}>()("app/Authorization", {
|
{
|
||||||
|
provides: CurrentUser
|
||||||
|
}
|
||||||
|
>()("app/Authorization", {
|
||||||
security: { bearer: HttpApiSecurity.bearer },
|
security: { bearer: HttpApiSecurity.bearer },
|
||||||
error: Unauthorized,
|
error: Unauthorized,
|
||||||
}) {}
|
}) {}
|
||||||
|
|||||||
@@ -76,9 +76,7 @@ describe("aggregateFailures", () => {
|
|||||||
])
|
])
|
||||||
|
|
||||||
expect(err!.message).toContain("4 of 5 requests failed: same config problem")
|
expect(err!.message).toContain("4 of 5 requests failed: same config problem")
|
||||||
expect(err!.message).toContain(
|
expect(err!.message).toContain("Affected startup requests: config.providers, provider.list, app.agents, config.get")
|
||||||
"Affected startup requests: config.providers, provider.list, app.agents, config.get",
|
|
||||||
)
|
|
||||||
expect(err!.message.match(/same config problem/g)?.length).toBe(1)
|
expect(err!.message.match(/same config problem/g)?.length).toBe(1)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user