fix(design): preserve command outcome certainty
This commit is contained in:
@@ -189,12 +189,14 @@ describe('AI design V2 Renderer API boundary', () => {
|
||||
hostApiFetchMock.mockRejectedValueOnce(new AppError('UNKNOWN', '后端拒绝', undefined, {
|
||||
status: 409,
|
||||
backendCode: 'design_direction_revision_conflict',
|
||||
commandOutcome: 'definitive_failure',
|
||||
}));
|
||||
|
||||
await expect(fetchImageWorkspace()).rejects.toEqual(expect.objectContaining({
|
||||
name: 'ImageWorkspaceApiError',
|
||||
status: 409,
|
||||
code: 'design_direction_revision_conflict',
|
||||
commandOutcome: 'definitive_failure',
|
||||
} satisfies Partial<ImageWorkspaceApiError>));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user