Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Jan 16, 2025
1 parent d9a957f commit 1f1f07d
Showing 1 changed file with 2 additions and 2 deletions.
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 @@ -163,7 +163,7 @@ describe('trailing slashes for error pages', () => {
});

it('renders 404 page when a route does not match the request', async () => {
const response = await fixture.fetch('/ashbfjkasn');
const response = await fixture.fetch('/ashbfjkasn/');
assert.equal(response.status, 404);
const html = await response.text();
const $ = cheerio.load(html);
Expand All @@ -181,7 +181,7 @@ describe('trailing slashes for error pages', () => {
});

it('renders 404 page when a route does not match the request', async () => {
const response = await app.render(new Request('http://example.com/ajksalscla'));
const response = await app.render(new Request('http://example.com/ajksalscla/'));
assert.equal(response.status, 404);
const html = await response.text();
const $ = cheerio.load(html);
Expand Down

0 comments on commit 1f1f07d

Please sign in to comment.