0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

[ci] format

This commit is contained in:
Florian Lefebvre 2024-06-19 14:01:10 +00:00 committed by astrobot-houston
parent 9042be0491
commit 5c56324c43
3 changed files with 4 additions and 4 deletions

View file

@ -429,7 +429,7 @@ export class App {
request,
routeData: errorRouteData,
status,
props: { error }
props: { error },
});
const response = await renderContext.render(await mod.page());
return this.#mergeResponses(response, originalResponse);

View file

@ -230,7 +230,7 @@ export async function handleRoute({
logger.error('router', err.stack || err.message);
const filePath500 = new URL(`./${custom500.component}`, config.root);
const preloaded500Component = await pipeline.preload(custom500, filePath500);
renderContext.props.error = err;
renderContext.props.error = err;
response = await renderContext.render(preloaded500Component);
status = 500;
}

View file

@ -1,9 +1,9 @@
import assert from 'node:assert/strict';
import { renameSync } from 'node:fs';
import { afterEach, describe, it } from 'node:test';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import testAdapter from './test-adapter.js';
import { renameSync } from 'node:fs';
import { loadFixture } from './test-utils.js';
describe('Custom 500', () => {
/** @type {Awaited<ReturnType<typeof loadFixture>>} */