Skip to content

Commit

Permalink
fix: test remove test that abuse prerender logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Sep 6, 2024
1 parent 2cfe46d commit e7bd25a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions packages/astro/test/astro-global.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ describe('Astro Global', () => {
let $ = cheerio.load(html);
assert.match($('#prerender').text(), /Astro route prerender: true/);
assert.match($('#prerender-middleware').text(), /Astro route prerender middleware: true/);

html = await fixture.fetch('/blog/about', {}).then((res) => res.text());
$ = cheerio.load(html);
assert.match($('#prerender').text(), /Astro route prerender: false/);
assert.match($('#prerender-middleware').text(), /Astro route prerender middleware: false/);
});
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
import Route from '../components/Route.astro'
export const prerender = false
import Route from '../components/Route.astro';
---
<html>
<head>
Expand Down

0 comments on commit e7bd25a

Please sign in to comment.