forked from baron/baron-sso
test: raise frontend coverage baselines
This commit is contained in:
@@ -261,7 +261,7 @@ async function mockProfileApis(page: Page, state: ProfileState): Promise<void> {
|
||||
const method = request.method().toUpperCase();
|
||||
|
||||
if (path.endsWith("/api/v1/user/me") && method === "GET") {
|
||||
const authHeader = request.headers()["authorization"] ?? "";
|
||||
const authHeader = request.headers().authorization ?? "";
|
||||
if (!authHeader.startsWith("Bearer ")) {
|
||||
await route.fulfill({
|
||||
status: 401,
|
||||
|
||||
Reference in New Issue
Block a user