mirror of
https://github.com/Ravinou/borgwarehouse
synced 2026-03-15 23:05:47 +01:00
26 lines
558 B
TypeScript
26 lines
558 B
TypeScript
export const ShellService = {
|
|
deleteRepo: vi.fn(),
|
|
updateRepo: vi.fn(),
|
|
createRepo: vi.fn(),
|
|
getLastSaveList: vi.fn(),
|
|
getStorageUsed: vi.fn(),
|
|
};
|
|
|
|
export const ConfigService = {
|
|
getUsersList: vi.fn(),
|
|
getRepoList: vi.fn(),
|
|
updateUsersList: vi.fn(),
|
|
updateRepoList: vi.fn(),
|
|
};
|
|
|
|
export const AuthService = {
|
|
verifyPassword: vi.fn(),
|
|
hashPassword: vi.fn(),
|
|
tokenController: vi.fn(),
|
|
};
|
|
|
|
export const NotifService = {
|
|
nodemailerSMTP: vi.fn(() => ({
|
|
sendMail: vi.fn().mockResolvedValue({ messageId: 'fake-message-id' }),
|
|
})),
|
|
};
|