From d0eb364645d9ea453dcf6b32ad35843919a3aef7 Mon Sep 17 00:00:00 2001 From: O96u Date: Wed, 9 Sep 2026 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20host-isolation=20=E5=8D=95=E6=B5=8B?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=E4=BC=A0=E5=85=A5=20hideFolder=20=E9=81=BF?= =?UTF-8?q?=E5=85=8D=20CI=20=E9=94=81=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 并行跑测时不再通过 isHideFolderInUrl 打开本地 SQLite。 --- server/utils/host-isolation.test.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/utils/host-isolation.test.ts b/server/utils/host-isolation.test.ts index 5b6d055..d06aa8f 100644 --- a/server/utils/host-isolation.test.ts +++ b/server/utils/host-isolation.test.ts @@ -34,7 +34,8 @@ describe('shouldBlockImageHostRequest', () => { imageHost, requestHost: imageHost, method: 'GET', - pathname: '/settings' + pathname: '/settings', + hideFolder: false })).toBe(true) }) @@ -45,7 +46,8 @@ describe('shouldBlockImageHostRequest', () => { imageHost, requestHost: imageHost, method: 'GET', - pathname: '/images/2026/08/demo.webp' + pathname: '/images/2026/08/demo.webp', + hideFolder: false })).toBe(false) }) @@ -93,7 +95,8 @@ describe('shouldBlockSiteHostImageRequest', () => { siteHost, requestHost: siteHost, method: 'GET', - pathname: '/images/2026/08/demo.webp' + pathname: '/images/2026/08/demo.webp', + hideFolder: false })).toBe(true) })