From 1603f7f65767d827fdc88264be8b79d9d1dc2785 Mon Sep 17 00:00:00 2001 From: sunlei Date: Sat, 6 Jun 2026 22:04:39 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=85=BC=E5=AE=B9=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=B9=B3=E5=8F=B0=E5=B7=AE=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/qqbot/plugins/bangDream/tsugu/cache-path.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/qqbot/plugins/bangDream/tsugu/cache-path.spec.ts b/test/qqbot/plugins/bangDream/tsugu/cache-path.spec.ts index fac3ce6..f834f65 100644 --- a/test/qqbot/plugins/bangDream/tsugu/cache-path.spec.ts +++ b/test/qqbot/plugins/bangDream/tsugu/cache-path.spec.ts @@ -10,12 +10,13 @@ describe('BangDream cache path', () => { '/assets/cn/event/foo/topscreen_rip/bg_eventtop.png', ); + const normalizedDirectory = directory.replace(/[\\/]/g, '_'); expect(directory).toContain( path.join('.kt-workspace', 'cache', 'bangdream'), ); expect(directory).toContain('bestdori.com'); - expect(directory).toContain( - path.join('assets', 'cn', 'event', 'foo', 'topscreen_rip'), + expect(normalizedDirectory).toContain( + 'assets_cn_event_foo_topscreen_rip', ); });