summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2023-08-31 18:08:08 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-08-31 18:08:08 +0000
commita4780e97f61ac55d3c111efb7b484a74383592a9 (patch)
tree514b873d6ad2b5785aab915b3d680fab2769d1a8
parentd3a6f9f836e35932a950e40ba69eff63d7db7eed (diff)
downloadastro-a4780e97f61ac55d3c111efb7b484a74383592a9.tar.gz
astro-a4780e97f61ac55d3c111efb7b484a74383592a9.tar.zst
astro-a4780e97f61ac55d3c111efb7b484a74383592a9.zip
[ci] format
-rw-r--r--packages/astro/src/core/routing/params.ts4
-rw-r--r--packages/astro/test/units/routing/route-sanitization.test.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/src/core/routing/params.ts b/packages/astro/src/core/routing/params.ts
index d2856563e..1e6b16858 100644
--- a/packages/astro/src/core/routing/params.ts
+++ b/packages/astro/src/core/routing/params.ts
@@ -1,6 +1,6 @@
import type { GetStaticPathsItem, Params, RouteData } from '../../@types/astro';
-import { validateGetStaticPathsParameter } from './validation.js';
import { trimSlashes } from '../path.js';
+import { validateGetStaticPathsParameter } from './validation.js';
/**
* given an array of params like `['x', 'y', 'z']` for
@@ -34,7 +34,7 @@ export function stringifyParams(params: GetStaticPathsItem['params'], route: Rou
validateGetStaticPathsParameter(next, route.component);
const [key, value] = next;
if (value !== undefined) {
- acc[key] = typeof value === 'string' ? trimSlashes(value) : value.toString()
+ acc[key] = typeof value === 'string' ? trimSlashes(value) : value.toString();
}
return acc;
}, {} as Params);
diff --git a/packages/astro/test/units/routing/route-sanitization.test.js b/packages/astro/test/units/routing/route-sanitization.test.js
index 3bddeb92a..14c9c3829 100644
--- a/packages/astro/test/units/routing/route-sanitization.test.js
+++ b/packages/astro/test/units/routing/route-sanitization.test.js
@@ -12,7 +12,7 @@ import testAdapter from '../../test-adapter.js';
const root = new URL('../../fixtures/alias/', import.meta.url);
const fileSystem = {
-'/src/pages/[...testSlashTrim].astro': `
+ '/src/pages/[...testSlashTrim].astro': `
---
export function getStaticPaths() {
return [