Add test suite, cover existing functions

This commit is contained in:
2026-03-12 17:28:43 +04:00
parent 53b2c9b4f8
commit c5c999ac79
5 changed files with 1239 additions and 2 deletions

16
test/utils.ts Normal file
View File

@@ -0,0 +1,16 @@
import { vi } from 'vitest';
export class MockPrivateClient {
storeObject = vi.fn();
remove = vi.fn();
getObject = vi.fn();
getAll = vi.fn();
getListing = vi.fn();
declareType = vi.fn();
// Helper to verify calls easily if needed directly
}
export function createMockClient() {
return new MockPrivateClient();
}