mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
chore: ran linting
This commit is contained in:
parent
2f540ee065
commit
dbf575fbd0
23 changed files with 89 additions and 96 deletions
|
|
@ -9,8 +9,7 @@ import type { APIRequestContext } from "@playwright/test";
|
|||
* is set up separately by tests/auth.setup.ts.
|
||||
*/
|
||||
|
||||
export const BACKEND_URL =
|
||||
process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL || "http://localhost:8000";
|
||||
export const BACKEND_URL = process.env.NEXT_PUBLIC_FASTAPI_BACKEND_URL || "http://localhost:8000";
|
||||
|
||||
const TEST_USER_EMAIL = process.env.PLAYWRIGHT_TEST_EMAIL || "test@surfsense.net";
|
||||
const TEST_USER_PASSWORD = process.env.PLAYWRIGHT_TEST_PASSWORD || "TestPassword123!";
|
||||
|
|
@ -43,10 +42,7 @@ export async function loginAsTestUser(request: APIRequestContext): Promise<strin
|
|||
* X-E2E-Scenario header that the test-only ScenarioMiddleware in
|
||||
* surfsense_backend/tests/e2e/run_backend.py reads to flip fake behavior.
|
||||
*/
|
||||
export function authHeaders(
|
||||
token: string,
|
||||
extra?: Record<string, string>
|
||||
): Record<string, string> {
|
||||
export function authHeaders(token: string, extra?: Record<string, string>): Record<string, string> {
|
||||
return {
|
||||
Authorization: `Bearer ${token}`,
|
||||
"Content-Type": "application/json",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue