test: 更新形态单图动态参数契约
This commit is contained in:
1 parent
e0f88b1e40
commit
ee659a97f3
1 file changed
+4
-4
@@ -20,8 +20,8 @@ describe('后端 API 契约', () => {
|
||||
await subjectImagesApi.listImages('form/id')
|
||||
await subjectImagesApi.generate('form/id', {
|
||||
setPrimary: false,
|
||||
width: 2048,
|
||||
height: 2048,
|
||||
provider: 'qwen-image',
|
||||
generationOptions: { size: '2048*2048' },
|
||||
prompt: '本次提示词'
|
||||
})
|
||||
await subjectImagesApi.generateProject('a/b', { concurrency: 2, force: false })
|
||||
@@ -35,8 +35,8 @@ describe('后端 API 契约', () => {
|
||||
])
|
||||
expect(JSON.parse(fetcher.mock.calls[2]![1]!.body as string)).toEqual({
|
||||
setPrimary: false,
|
||||
width: 2048,
|
||||
height: 2048,
|
||||
provider: 'qwen-image',
|
||||
generationOptions: { size: '2048*2048' },
|
||||
prompt: '本次提示词'
|
||||
})
|
||||
expect(JSON.parse(fetcher.mock.calls[3]![1]!.body as string)).toEqual({
|
||||
|
||||
Reference in new issue
Block a user