From 5ee9dfc2471791c1fd254527b2b1a8ff8c5acb2e Mon Sep 17 00:00:00 2001 From: sunlei Date: Wed, 15 Jul 2026 18:06:24 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0=20Live2D=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E8=AF=B7=E6=B1=82=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__tests__/App.spec.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/__tests__/App.spec.ts b/src/__tests__/App.spec.ts index 33254fd..987f77d 100644 --- a/src/__tests__/App.spec.ts +++ b/src/__tests__/App.spec.ts @@ -265,8 +265,15 @@ describe('App', () => { }); await flushPromises(); - expect(fetchMock).toHaveBeenCalledTimes(1); - expect(fetchMock).toHaveBeenCalledWith('/api/blog/theme/config'); + const requestedUrls = fetchMock.mock.calls.map(([url]) => `${url}`); + expect(requestedUrls).toHaveLength(2); + expect(requestedUrls).toEqual( + expect.arrayContaining([ + '/api/blog/theme/config', + '/api/blog/live2d/pio/moc/index.json', + ]), + ); + expect(requestedUrls).not.toContain('/api/wordpress/theme/config'); }); it('can load WordPress migration theme config through env override', async () => {