Browse Source

ref: yet more unimportant stuff

Sv443 4 months ago
parent
commit
de47ccae1b
2 changed files with 5 additions and 2 deletions
  1. 4 1
      test/consts.ts
  2. 1 1
      test/hooks.ts

+ 4 - 1
test/consts.ts

@@ -11,6 +11,9 @@ const authToken = process.env.AUTH_TOKENS?.split(",")[0];
 export const defaultFetchOpts = {
   method: "GET",
   headers: {
-    ...(authToken ? { "Authentication": `Bearer ${authToken}` } : {}),
+    ...(authToken
+      ? { "Authentication": `Bearer ${authToken}` }
+      : {}
+    ),
   },
 } as const satisfies RequestInit;

+ 1 - 1
test/hooks.ts

@@ -64,6 +64,6 @@ export async function sendReq(path: string, opts?: RequestInit): Promise<{
   headers: Headers;
 }> {
   const res = await fetch(`${baseUrl}/${path.startsWith("/") ? path.substring(1) : path}`, { ...defaultFetchOpts, ...opts });
-  
+
   return { res, status: res.status, headers: res.headers };
 }