diff --git a/tests/lib/http.test.ts b/tests/lib/http.test.ts index 0627ebf..5673a2a 100644 --- a/tests/lib/http.test.ts +++ b/tests/lib/http.test.ts @@ -53,7 +53,7 @@ describe('后端 API 契约', () => { await subjectImagesApi.generateProject('project/id', { concurrency: 1, force: false, module: 'prop' }) await subjectIdentityApi.generateProject('project/id', { concurrency: 2, force: false, module: 'scene' }) await subjectIdentityApi.generateStableAnchors('project/id', { module: 'prop', limit: 3, concurrency: 2 }) - await productionApi.previewKeyframe('shot/id') + await productionApi.previewKeyframe('shot/id', {}) expect(fetcher.mock.calls.map(([url, init]) => [url, init?.method])).toEqual([ ['/api/subject-forms/form%2Fid/images/preview', 'POST'], ['/api/projects/project%2Fid/subject-forms/generation-prompts', 'POST'],