updates on the logic on the skills and settings tab

This commit is contained in:
2026-10-06 20:58:15 +05:30
parent 21775fe6f9
commit 8dca169b83
5 changed files with 74 additions and 5 deletions

View File

@@ -36,6 +36,8 @@ jest.mock('@/api/doormile', () => {
});
jest.mock('@/api/doormile/notify', () => ({ OpenToast: jest.fn() }));
const mockAuth = { user: { email: 'admin@doormile.com', role: 'admin' }, isClient: false };
jest.mock('@/lib/AuthContext', () => ({ useAuth: () => mockAuth }));
const api = require('@/api/doormile');
const { OpenToast } = require('@/api/doormile/notify');