mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
abcefe55cd
commit
980246f148
1 changed files with 7 additions and 7 deletions
|
@ -12,13 +12,13 @@ describe('Integrations can hook into the prerendering decision', () => {
|
||||||
['astro:build:setup']({ pages, target }) {
|
['astro:build:setup']({ pages, target }) {
|
||||||
if (target !== 'client') return;
|
if (target !== 'client') return;
|
||||||
// this page has `export const prerender = true`
|
// this page has `export const prerender = true`
|
||||||
pages.get('src/pages/static.astro').route.prerender = false
|
pages.get('src/pages/static.astro').route.prerender = false;
|
||||||
|
|
||||||
// this page does not
|
// this page does not
|
||||||
pages.get('src/pages/not-prerendered.astro').route.prerender = true
|
pages.get('src/pages/not-prerendered.astro').route.prerender = true;
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
|
||||||
before(async () => {
|
before(async () => {
|
||||||
fixture = await loadFixture({
|
fixture = await loadFixture({
|
||||||
|
@ -29,7 +29,7 @@ describe('Integrations can hook into the prerendering decision', () => {
|
||||||
});
|
});
|
||||||
await fixture.build();
|
await fixture.build();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('An integration can override the prerender flag', async () => {
|
it('An integration can override the prerender flag', async () => {
|
||||||
// test adapter only hosts dynamic routes
|
// test adapter only hosts dynamic routes
|
||||||
// /static is expected to become dynamic
|
// /static is expected to become dynamic
|
||||||
|
|
Loading…
Reference in a new issue