From 984f6bf3af649663310502668944585553e0fa4d Mon Sep 17 00:00:00 2001 From: Goulven Clec'h Date: Mon, 29 Apr 2024 15:35:56 +0200 Subject: [PATCH] clean unnecessary change --- packages/astro/test/ssr-split-manifest.test.js | 6 +++--- packages/astro/test/test-utils.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/test/ssr-split-manifest.test.js b/packages/astro/test/ssr-split-manifest.test.js index 2b06979328..2f66b36761 100644 --- a/packages/astro/test/ssr-split-manifest.test.js +++ b/packages/astro/test/ssr-split-manifest.test.js @@ -40,7 +40,7 @@ describe('astro:ssr-manifest, split', () => { it('should be able to render a specific entry point', async () => { const pagePath = 'src/pages/index.astro'; - const app = await fixture.loadEntryPoint(currentRoutes, pagePath); + const app = await fixture.loadEntryPoint(pagePath, currentRoutes); const request = new Request('http://example.com/'); const response = await app.render(request); const html = await response.text(); @@ -73,7 +73,7 @@ describe('astro:ssr-manifest, split', () => { it('should emit an entry point to request the pre-rendered page', async () => { const pagePath = 'src/pages/prerender.astro'; - const app = await fixture.loadEntryPoint(currentRoutes, pagePath); + const app = await fixture.loadEntryPoint(pagePath, currentRoutes); const request = new Request('http://example.com/'); const response = await app.render(request); const html = await response.text(); @@ -107,7 +107,7 @@ describe('astro:ssr-manifest, split', () => { }); it('should correctly build, and not create a "uses" entry point', async () => { const pagePath = 'src/pages/index.astro'; - const app = await fixture.loadEntryPoint(currentRoutes, pagePath); + const app = await fixture.loadEntryPoint(pagePath, currentRoutes); const request = new Request('http://example.com/'); const response = await app.render(request); const html = await response.text(); diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js index ba9c2d4d88..7d5b89c351 100644 --- a/packages/astro/test/test-utils.js +++ b/packages/astro/test/test-utils.js @@ -220,7 +220,7 @@ export async function loadFixture(inlineConfig) { app.manifest = manifest; return app; }, - loadEntryPoint: async (routes, pagePath, streaming) => { + loadEntryPoint: async (pagePath, routes, streaming) => { const virtualModule = getVirtualModulePageName(RESOLVED_SPLIT_MODULE_ID, pagePath); const filePath = makeSplitEntryPointFileName(virtualModule, routes); const url = new URL(`./server/${filePath}?id=${fixtureId}`, config.outDir);