优化
This commit is contained in:
@@ -22,6 +22,12 @@ describe('platform container customs API', () => {
|
||||
expect(result.documents[0]?.documentId).toBe('2092438843630391407')
|
||||
})
|
||||
|
||||
it('returns null while the loading plan is not completed', async () => {
|
||||
vi.spyOn(http, 'get').mockResolvedValue({ code: '200', message: 'ok', data: null })
|
||||
|
||||
await expect(getContainerCustoms('2097922185010147329')).resolves.toBeNull()
|
||||
})
|
||||
|
||||
it('sends confirmed start and all-buy completion with optimistic version and idempotency', async () => {
|
||||
const post = vi.spyOn(http, 'post').mockResolvedValue({ code: '200', message: 'ok', data: customs })
|
||||
await startContainerCustoms('2092438843630391402', 3)
|
||||
|
||||
Reference in New Issue
Block a user