From 4f413ad7715aa5b33f618c237acb69cea87b8126 Mon Sep 17 00:00:00 2001 From: tony-sull Date: Sun, 15 May 2022 21:48:18 +0000 Subject: [PATCH] [ci] format --- packages/astro/e2e/test-utils.js | 4 ++-- packages/astro/test/test-utils.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/e2e/test-utils.js b/packages/astro/e2e/test-utils.js index e2552042c..71d8a26fa 100644 --- a/packages/astro/e2e/test-utils.js +++ b/packages/astro/e2e/test-utils.js @@ -8,6 +8,6 @@ export function loadFixture(inlineConfig) { // without this, the main `loadFixture` helper will resolve relative to `packages/astro/test` return baseLoadFixture({ ...inlineConfig, - root: new URL(inlineConfig.root, import.meta.url).toString() - }) + root: new URL(inlineConfig.root, import.meta.url).toString(), + }); } diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js index bc7ff3f0b..5d56965ad 100644 --- a/packages/astro/test/test-utils.js +++ b/packages/astro/test/test-utils.js @@ -94,7 +94,8 @@ export async function loadFixture(inlineConfig) { }, }; - const resolveUrl = (url) => `http://${'127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`; + const resolveUrl = (url) => + `http://${'127.0.0.1'}:${config.server.port}${url.replace(/^\/?/, '/')}`; return { build: (opts = {}) => build(config, { mode: 'development', logging, telemetry, ...opts }), @@ -105,8 +106,7 @@ export async function loadFixture(inlineConfig) { }, config, resolveUrl, - fetch: (url, init) => - fetch(resolveUrl(url), init), + fetch: (url, init) => fetch(resolveUrl(url), init), preview: async (opts = {}) => { const previewServer = await preview(config, { logging, telemetry, ...opts }); return previewServer;