e2e/helpers/page.ts: fix eslint errors
Result of `npm run lint -- --fix`.
Trust: Jonathan Amsterdam
Run-TryBot: Jonathan Amsterdam
TryBot-Result: kokoro
@@ -9,7 +9,11 @@ import { DirectNavigationOptions, Page } from 'puppeteer';
import '../global-types';
-const { AUTHORIZATION = null, BASE_URL = 'http://host.docker.internal:8080', QUOTA_BYPASS = null } = process.env;
+const {
+ AUTHORIZATION = null,
+ BASE_URL = 'http://host.docker.internal:8080',
+ QUOTA_BYPASS = null,
+} = process.env;
/**
* newPage opens a new chrome tab, sets up a request intercept
@@ -26,7 +30,11 @@ export async function newPage(): Promise<Page> {
const url = new URL(r.url());
let headers = r.headers();
if (url.origin === BASE_URL) {
- headers = { ...r.headers(), Authorization: `Bearer ${AUTHORIZATION}`, "X-Go-Discovery-Auth-Bypass-Quota": QUOTA_BYPASS };
+ headers = {
+ ...r.headers(),
+ Authorization: `Bearer ${AUTHORIZATION}`,
+ 'X-Go-Discovery-Auth-Bypass-Quota': QUOTA_BYPASS,
+ };
}
r.continue({ headers });
});
