From 667539be5ad20d9ac17f0dc9a5c7d2fe6eef77d8 Mon Sep 17 00:00:00 2001 From: Arsh Date: Fri, 15 Dec 2023 17:16:14 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/app/index.ts | 2 +- packages/astro/test/custom-404-static.test.js | 4 ++-- packages/astro/test/ssr-error-pages.test.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/core/app/index.ts b/packages/astro/src/core/app/index.ts index 4e446bf9cf28..ca1de94fd795 100644 --- a/packages/astro/src/core/app/index.ts +++ b/packages/astro/src/core/app/index.ts @@ -333,7 +333,7 @@ export class App { request: Request, { status, response: originalResponse, skipMiddleware = false }: RenderErrorOptions ): Promise { - const errorRoutePath = `/${status}${this.#manifest.trailingSlash === "always" ? '/' : ''}`; + const errorRoutePath = `/${status}${this.#manifest.trailingSlash === 'always' ? '/' : ''}`; const errorRouteData = matchRoute(errorRoutePath, this.#manifestData); const url = new URL(request.url); if (errorRouteData) { diff --git a/packages/astro/test/custom-404-static.test.js b/packages/astro/test/custom-404-static.test.js index 4400a1d3604c..b3dee2b10c4a 100644 --- a/packages/astro/test/custom-404-static.test.js +++ b/packages/astro/test/custom-404-static.test.js @@ -42,11 +42,11 @@ describe('Custom 404', () => { expect($('p').text()).to.equal('/a'); }); }); - + describe('build', () => { before(async () => { await fixture.build(); - }) + }); it('builds to 404.html', async () => { const html = await fixture.readFile('/404.html'); diff --git a/packages/astro/test/ssr-error-pages.test.js b/packages/astro/test/ssr-error-pages.test.js index 5332180fe81d..c540618b348d 100644 --- a/packages/astro/test/ssr-error-pages.test.js +++ b/packages/astro/test/ssr-error-pages.test.js @@ -117,7 +117,7 @@ describe('trailing slashes for error pages', () => { root: './fixtures/ssr-error-pages/', output: 'server', adapter: testAdapter(), - trailingSlash: 'always' + trailingSlash: 'always', }); }); @@ -155,6 +155,6 @@ describe('trailing slashes for error pages', () => { expect(html).to.not.be.empty; const $ = cheerio.load(html); expect($('h1').text()).to.equal('Something went horribly wrong!'); - }) + }); }); });