From 1a26c6dfe5fb0c339da5ba6fc6e18b2b9955ebb3 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 18 Jul 2024 13:45:29 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/routing/default.ts | 6 ++---- packages/astro/test/units/test-utils.js | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/core/routing/default.ts b/packages/astro/src/core/routing/default.ts index 67cfbd97c68c..f617bd0dc153 100644 --- a/packages/astro/src/core/routing/default.ts +++ b/packages/astro/src/core/routing/default.ts @@ -30,15 +30,13 @@ export function createDefaultRoutes(manifest: SSRManifest): DefaultRouteParams[] return [ { instance: default404Instance, - matchesComponent: (filePath) => - filePath.href === new URL(DEFAULT_404_COMPONENT, root).href, + matchesComponent: (filePath) => filePath.href === new URL(DEFAULT_404_COMPONENT, root).href, route: DEFAULT_404_ROUTE.route, component: DEFAULT_404_COMPONENT, }, { instance: createServerIslandEndpoint(manifest), - matchesComponent: (filePath) => - filePath.href === new URL(SERVER_ISLAND_COMPONENT, root).href, + matchesComponent: (filePath) => filePath.href === new URL(SERVER_ISLAND_COMPONENT, root).href, route: SERVER_ISLAND_ROUTE, component: SERVER_ISLAND_COMPONENT, }, diff --git a/packages/astro/test/units/test-utils.js b/packages/astro/test/units/test-utils.js index 0ffae5b0b8a3..668e71574ecd 100644 --- a/packages/astro/test/units/test-utils.js +++ b/packages/astro/test/units/test-utils.js @@ -189,7 +189,7 @@ export function createBasicPipeline(options = {}) { const pipeline = new Pipeline( options.logger ?? defaultLogger, options.manifest ?? { - hrefRoot: import.meta.url + hrefRoot: import.meta.url, }, options.mode ?? 'development', options.renderers ?? [],