mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 14:51:13 +08:00
test(web): add useDatasetScopedApiKeys to develop-page-flow mock
DevelopMain renders the SecretKeyModal, which now calls useDatasetScopedApiKeys; the use-dataset mock in this flow test was missing that export, causing the modal to throw at render.
This commit is contained in:
parent
1edffca717
commit
fdeef63c45
@ -84,6 +84,7 @@ vi.mock('@/service/use-apps', () => ({
|
||||
|
||||
vi.mock('@/service/knowledge/use-dataset', () => ({
|
||||
useDatasetApiKeys: () => ({ data: null, isLoading: false }),
|
||||
useDatasetScopedApiKeys: () => ({ data: null, isLoading: false }),
|
||||
useInvalidateDatasetApiKeys: () => vi.fn(),
|
||||
}))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user