From 7f3b0398e0350d268f5d07fa2d2520efed7af9be Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Tue, 8 Nov 2022 21:31:05 +0800 Subject: [PATCH] Fix image test fail (#5321) --- packages/integrations/image/test/image-ssr-build.test.js | 2 +- packages/integrations/image/test/picture-ssr-build.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/image/test/image-ssr-build.test.js b/packages/integrations/image/test/image-ssr-build.test.js index a2b7d0150..c20692c0e 100644 --- a/packages/integrations/image/test/image-ssr-build.test.js +++ b/packages/integrations/image/test/image-ssr-build.test.js @@ -204,7 +204,7 @@ describe('SSR images with subpath - build', function () { it(title, async () => { const app = await fixture.loadTestAdapterApp(); - const request = new Request('http://example.com/'); + const request = new Request('http://example.com/docs/'); const response = await app.render(request); const html = await response.text(); const $ = cheerio.load(html); diff --git a/packages/integrations/image/test/picture-ssr-build.test.js b/packages/integrations/image/test/picture-ssr-build.test.js index aa3bdfc3e..57429fde8 100644 --- a/packages/integrations/image/test/picture-ssr-build.test.js +++ b/packages/integrations/image/test/picture-ssr-build.test.js @@ -195,7 +195,7 @@ describe('SSR pictures with subpath - build', function () { it(title, async () => { const app = await fixture.loadTestAdapterApp(); - const request = new Request('http://example.com/'); + const request = new Request('http://example.com/docs/'); const response = await app.render(request); const html = await response.text(); const $ = cheerio.load(html);