mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: correct test expectation for model provider setting payload
The test was expecting 'provider' but the actual value passed is 'model-provider' from ACCOUNT_SETTING_TAB.MODEL_PROVIDER constant.
This commit is contained in:
@ -622,7 +622,7 @@ describe('DatasetUpdateForm', () => {
|
||||
fireEvent.click(screen.getByTestId('step-two-setting'))
|
||||
|
||||
// Assert
|
||||
expect(mockSetShowAccountSettingModal).toHaveBeenCalledWith({ payload: 'provider' })
|
||||
expect(mockSetShowAccountSettingModal).toHaveBeenCalledWith({ payload: 'model-provider' })
|
||||
})
|
||||
|
||||
it('should update crawl options when onCrawlOptionsChange is called', () => {
|
||||
|
||||
Reference in New Issue
Block a user