[ci] format

This commit is contained in:
natemoo-re 2023-08-31 18:08:08 +00:00 committed by astrobot-houston
parent d3a6f9f836
commit a4780e97f6
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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 [