test: add comprehensive unit tests for apiClient, RouteGuards, and useAuth hook functionality

This commit is contained in:
Your Name
2026-04-12 15:38:24 +05:30
parent 6d5bc3ca09
commit 293da0a18a
7 changed files with 517 additions and 13 deletions
+2
View File
@@ -36,6 +36,8 @@ export const useAuth = () => {
const logout = async () => {
try {
await api.post(endpoints.LOGOUT);
} catch (error) {
console.error("Logout failed:", error);
} finally {
clearAuth();
setMasterKey(null);