Fix image test fail (#5321)

This commit is contained in:
Bjorn Lu 2022-11-08 21:31:05 +08:00 committed by GitHub
parent 56c37a6287
commit 7f3b0398e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);