test(frontend): veraltete Testerwartungen an aktuelle UI angepasst — Tasks 3-Spalten-Layout mit Toolbar-Store statt Inline-Button, MiniAppBlock async-Fetch + DOMPurify-Attributentfernung, Router-QueryClientProvider, Toast-Mocks auf flache echte API-Signatur, automation-Mocks mockResolvedValue
This commit is contained in:
@@ -45,6 +45,7 @@ describe('Automation API Hooks', () => {
|
||||
return { data: [], isLoading: false };
|
||||
});
|
||||
|
||||
mockApiGet.mockResolvedValue([]);
|
||||
useAutomations();
|
||||
expect(mockApiGet).toHaveBeenCalledWith('/automation');
|
||||
});
|
||||
@@ -61,6 +62,7 @@ describe('Automation API Hooks', () => {
|
||||
return { data: [], isLoading: false };
|
||||
});
|
||||
|
||||
mockApiGet.mockResolvedValue([]);
|
||||
useAgents();
|
||||
expect(mockApiGet).toHaveBeenCalledWith('/agents');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user