Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Dec 15, 2023
1 parent 6d2d0e2 commit 667539b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/custom-404-static.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/ssr-error-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('trailing slashes for error pages', () => {
root: './fixtures/ssr-error-pages/',
output: 'server',
adapter: testAdapter(),
trailingSlash: 'always'
trailingSlash: 'always',
});
});

Expand Down Expand Up @@ -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!');
})
});
});
});

0 comments on commit 667539b

Please sign in to comment.