补齐生成 payload 新增 style 字段的测试断言
useImageCanvasGenerationWorkflow.test.tsx 用 toHaveBeenCalledWith 精确匹配 普通图片生成 payload,本分支为该 payload 增加 style 字段后未同步该文件, CI 前端测试报 "+ style: none"。 该文件不在本分支改动清单内,故此前未被发现。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1271,6 +1271,7 @@ describe('useImageCanvasGenerationWorkflow', () => {
|
||||
expect(generateEditorImageMock).toHaveBeenCalledWith({
|
||||
prompt: '一张生成图',
|
||||
model: 'gemini-3.1-flash-image-preview',
|
||||
style: 'none',
|
||||
aspectRatio: '1:1',
|
||||
imageSize: '1K',
|
||||
projectId: undefined,
|
||||
@@ -1352,6 +1353,7 @@ describe('useImageCanvasGenerationWorkflow', () => {
|
||||
expect(generateEditorImageMock).toHaveBeenCalledWith({
|
||||
prompt: '一张生成图',
|
||||
model: 'gemini-3.1-flash-image-preview',
|
||||
style: 'none',
|
||||
aspectRatio: '1:1',
|
||||
imageSize: '1K',
|
||||
projectId: undefined,
|
||||
|
||||
Reference in New Issue
Block a user