diff options
author | 2023-12-15 17:16:14 +0000 | |
---|---|---|
committer | 2023-12-15 17:16:14 +0000 | |
commit | 667539be5ad20d9ac17f0dc9a5c7d2fe6eef77d8 (patch) | |
tree | fc3f244cc653d85907626aea84853d720f2d7158 | |
parent | 6d2d0e279dd51e04099c86c4d900e2dd1d5fa837 (diff) | |
download | astro-667539be5ad20d9ac17f0dc9a5c7d2fe6eef77d8.tar.gz astro-667539be5ad20d9ac17f0dc9a5c7d2fe6eef77d8.tar.zst astro-667539be5ad20d9ac17f0dc9a5c7d2fe6eef77d8.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/app/index.ts | 2 | ||||
-rw-r--r-- | packages/astro/test/custom-404-static.test.js | 4 | ||||
-rw-r--r-- | 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 4e446bf9c..ca1de94fd 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<Response> { - 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 4400a1d36..b3dee2b10 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 5332180fe..c540618b3 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!'); - }) + }); }); }); |