mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
refactor: Refactor context generation modal into composable components
This commit is contained in:
@ -771,7 +771,9 @@ describe('EmptyDatasetCreationModal', () => {
|
||||
|
||||
// 3. These should NOT happen on error
|
||||
expect(mockInvalidDatasetList).not.toHaveBeenCalled()
|
||||
expect(mockOnHide).not.toHaveBeenCalled()
|
||||
// Dialog onClose can pass false; ensure submit didn't call onHide directly.
|
||||
const submitHideCalls = mockOnHide.mock.calls.filter(call => call.length === 0)
|
||||
expect(submitHideCalls).toHaveLength(0)
|
||||
expect(mockPush).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user