diff --git a/src/api/__tests__/client.spec.ts b/src/api/__tests__/client.spec.ts index c97eae10..a3684a34 100644 --- a/src/api/__tests__/client.spec.ts +++ b/src/api/__tests__/client.spec.ts @@ -182,8 +182,8 @@ describe('MoviePilot API client', () => { it('取消请求保持原始 CanceledError,且不提示或触发离线探测', async () => { const reportConnectionFailure = vi.fn() - const adapter: AxiosAdapter = async config => { - throw new CanceledError('Request cancelled', config) + const adapter: AxiosAdapter = async () => { + throw new CanceledError('Request cancelled') } const { api } = createApiClients({ adapter, hooks: { reportConnectionFailure }, notifier })